mirror of
https://github.com/moparisthebest/k-9
synced 2024-11-15 22:15:15 -05:00
make the folders button in the account list more like a button. backcompat for pre-sdk-11 styles
This commit is contained in:
parent
44e5ce0efe
commit
d85315222e
@ -16,15 +16,6 @@
|
|||||||
android:layout_marginLeft="8dip"
|
android:layout_marginLeft="8dip"
|
||||||
android:layout_marginRight="6dip" />
|
android:layout_marginRight="6dip" />
|
||||||
|
|
||||||
<ImageButton
|
|
||||||
android:id="@+id/folders"
|
|
||||||
android:gravity="center_vertical"
|
|
||||||
android:focusable="false"
|
|
||||||
android:layout_marginRight="3dip"
|
|
||||||
android:background="?attr/iconFolder"
|
|
||||||
android:layout_width="wrap_content"
|
|
||||||
android:layout_height="wrap_content" />
|
|
||||||
|
|
||||||
<LinearLayout
|
<LinearLayout
|
||||||
android:layout_width="wrap_content"
|
android:layout_width="wrap_content"
|
||||||
android:layout_height="wrap_content"
|
android:layout_height="wrap_content"
|
||||||
@ -54,5 +45,33 @@
|
|||||||
</LinearLayout>
|
</LinearLayout>
|
||||||
|
|
||||||
<include layout="@layout/accounts_folders_icons" />
|
<include layout="@layout/accounts_folders_icons" />
|
||||||
|
<LinearLayout
|
||||||
|
android:id="@+id/folder_button_wrapper"
|
||||||
|
android:layout_width="wrap_content"
|
||||||
|
android:layout_height="wrap_content"
|
||||||
|
android:orientation="horizontal"
|
||||||
|
>
|
||||||
|
|
||||||
|
<View
|
||||||
|
android:layout_width="1dp"
|
||||||
|
android:layout_height="match_parent"
|
||||||
|
android:layout_marginLeft="4dip"
|
||||||
|
android:layout_marginRight="4dip"
|
||||||
|
android:background="?attr/compatDividerVertical"
|
||||||
|
android:layout_alignParentTop="true"/>
|
||||||
|
<ImageButton
|
||||||
|
android:id="@+id/folders"
|
||||||
|
android:gravity="center_vertical"
|
||||||
|
android:focusable="false"
|
||||||
|
android:layout_marginRight="3dip"
|
||||||
|
android:src="?attr/iconFolder"
|
||||||
|
android:background="?attr/compatSelectableItemBackground"
|
||||||
|
android:layout_width="wrap_content"
|
||||||
|
android:layout_height="fill_parent"
|
||||||
|
android:padding="8dp"
|
||||||
|
android:paddingLeft="16dp"
|
||||||
|
android:paddingRight="16dp"
|
||||||
|
/>
|
||||||
|
|
||||||
</LinearLayout>
|
</LinearLayout>
|
||||||
|
</LinearLayout>
|
||||||
|
@ -5,6 +5,8 @@
|
|||||||
|
|
||||||
<style name="Theme.K9.Dark" parent="Theme.K9.Dark.Base">
|
<style name="Theme.K9.Dark" parent="Theme.K9.Dark.Base">
|
||||||
<item name="composerBackgroundColor">@android:color/background_dark</item>
|
<item name="composerBackgroundColor">@android:color/background_dark</item>
|
||||||
|
<item name="compatDividerVertical">@android:attr/dividerVertical</item>
|
||||||
|
<item name="compatSelectableItemBackground">?android:attr/selectableItemBackground</item>
|
||||||
</style>
|
</style>
|
||||||
|
|
||||||
<style name="Theme.K9.Light" parent="Theme.K9.Light.Base">
|
<style name="Theme.K9.Light" parent="Theme.K9.Light.Base">
|
||||||
@ -13,6 +15,8 @@
|
|||||||
|
|
||||||
<style name="Theme.K9.Dialog.Dark" parent="Theme.K9.Dark">
|
<style name="Theme.K9.Dialog.Dark" parent="Theme.K9.Dark">
|
||||||
<item name="backgroundColorChooseAccountHeader">#404040</item>
|
<item name="backgroundColorChooseAccountHeader">#404040</item>
|
||||||
|
<item name="compatDividerVertical">@android:attr/dividerVertical</item>
|
||||||
|
<item name="compatSelectableItemBackground">?android:attr/selectableItemBackground</item>
|
||||||
</style>
|
</style>
|
||||||
|
|
||||||
</resources>
|
</resources>
|
||||||
|
@ -49,7 +49,8 @@
|
|||||||
<attr name="messageViewAttachmentBackground" format="reference"/>
|
<attr name="messageViewAttachmentBackground" format="reference"/>
|
||||||
<attr name="messageComposeAddContactImage" format="reference"/>
|
<attr name="messageComposeAddContactImage" format="reference"/>
|
||||||
<attr name="composerBackgroundColor" format="color"/>
|
<attr name="composerBackgroundColor" format="color"/>
|
||||||
|
<attr name="compatDividerVertical" format="reference"/>
|
||||||
|
<attr name="compatSelectableItemBackground" format="reference"/>
|
||||||
</declare-styleable>
|
</declare-styleable>
|
||||||
|
|
||||||
</resources>
|
</resources>
|
||||||
|
@ -49,6 +49,8 @@
|
|||||||
<item name="messageViewHeaderBackgroundColor">#ffffffff</item>
|
<item name="messageViewHeaderBackgroundColor">#ffffffff</item>
|
||||||
<item name="messageViewAttachmentBackground">@drawable/attachment_text_box_light</item>
|
<item name="messageViewAttachmentBackground">@drawable/attachment_text_box_light</item>
|
||||||
<item name="messageComposeAddContactImage">@drawable/ic_button_add_contact_light</item>
|
<item name="messageComposeAddContactImage">@drawable/ic_button_add_contact_light</item>
|
||||||
|
<item name="compatDividerVertical">?attr/messageListDividerColor</item>
|
||||||
|
<item name="compatSelectableItemBackground">@android:color/transparent</item>
|
||||||
</style>
|
</style>
|
||||||
|
|
||||||
<style name="Theme.K9.Dark.Base" parent="Theme.Sherlock">
|
<style name="Theme.K9.Dark.Base" parent="Theme.Sherlock">
|
||||||
@ -97,6 +99,8 @@
|
|||||||
<item name="messageViewHeaderBackgroundColor">#000000</item>
|
<item name="messageViewHeaderBackgroundColor">#000000</item>
|
||||||
<item name="messageViewAttachmentBackground">@drawable/attachment_text_box_dark</item>
|
<item name="messageViewAttachmentBackground">@drawable/attachment_text_box_dark</item>
|
||||||
<item name="messageComposeAddContactImage">@drawable/ic_button_add_contact_dark</item>
|
<item name="messageComposeAddContactImage">@drawable/ic_button_add_contact_dark</item>
|
||||||
|
<item name="compatDividerVertical">?attr/messageListDividerColor</item>
|
||||||
|
<item name="compatSelectableItemBackground">@android:color/transparent</item>
|
||||||
</style>
|
</style>
|
||||||
|
|
||||||
<style name="Theme.K9.Light" parent="Theme.K9.Light.Base">
|
<style name="Theme.K9.Light" parent="Theme.K9.Light.Base">
|
||||||
|
Loading…
Reference in New Issue
Block a user