1
0
mirror of https://github.com/moparisthebest/k-9 synced 2024-10-31 15:45:08 -04:00

Switch to a light visual theme more in keeping with every other mail client on the planet.

Start to improve padding/spacing/layout
This commit is contained in:
Jesse Vincent 2009-04-19 09:10:32 +00:00
parent e24b3429dc
commit 64eda5106c
24 changed files with 99 additions and 43 deletions

View File

@ -15,7 +15,8 @@
android:label="@string/read_attachment_label"
android:description="@string/read_attachment_desc"/>
<uses-permission android:name="com.android.email.permission.READ_ATTACHMENT"/>
<application android:icon="@drawable/icon" android:label="@string/app_name" android:name="K9">
<application android:icon="@drawable/icon" android:label="@string/app_name" android:name="K9"
android:theme="@android:style/Theme.Light">
<activity android:name="com.android.email.activity.Welcome">
<intent-filter>
<action android:name="android.intent.action.MAIN" />

View File

@ -0,0 +1,11 @@
<?xml version="1.0" encoding="utf-8"?>
<selector xmlns:android="http://schemas.android.com/apk/res/android">
<item android:state_window_focused="false" android:state_selected="true"
android:drawable="@color/folder_message_list_child_footer_background" />
<item android:state_selected="true"
android:drawable="@android:color/transparent" />
<item android:state_pressed="true" android:state_selected="false"
android:drawable="@android:color/transparent" />
<item android:state_selected="false"
android:drawable="@color/folder_message_list_child_footer_background" />
</selector>

View File

@ -0,0 +1,11 @@
<?xml version="1.0" encoding="utf-8"?>
<selector xmlns:android="http://schemas.android.com/apk/res/android">
<item android:state_window_focused="false" android:state_selected="true"
android:drawable="@color/folder_message_list_group_background" />
<item android:state_selected="true"
android:drawable="@android:color/transparent" />
<item android:state_pressed="true" android:state_selected="false"
android:drawable="@android:color/transparent" />
<item android:state_selected="false"
android:drawable="@color/folder_message_list_group_background" />
</selector>

View File

@ -18,7 +18,7 @@
android:ellipsize="end"
android:textAppearance="?android:attr/textAppearanceSmall"
android:singleLine="true"
android:textColor="?android:attr/textColorPrimary"
android:textColor="?android:attr/textColorPrimaryInverse"
android:layout_width="50px"
android:layout_height="wrap_content"
android:layout_alignParentRight="true" />
@ -29,7 +29,7 @@
android:layout_width="110px"
android:layout_height="wrap_content"
android:textAppearance="?android:attr/textAppearanceSmall"
android:textColor="?android:attr/textColorSecondary"
android:textColor="?android:attr/textColorSecondaryInverse"
android:paddingLeft="3px"
android:paddingRight="3px"
android:layout_toLeftOf="@+id/date" />
@ -38,7 +38,7 @@
android:ellipsize="end"
android:singleLine="true"
android:textAppearance="?android:attr/textAppearanceSmall"
android:textColor="?android:attr/textColorPrimary"
android:textColor="?android:attr/textColorPrimaryInverse"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:paddingLeft="10px"

View File

@ -1,6 +1,8 @@
<?xml version="1.0" encoding="utf-8"?>
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:layout_width="fill_parent"
android:padding="6dip"
android:layout_height="fill_parent"
android:orientation="vertical"
>
@ -10,29 +12,34 @@
android:layout_width="fill_parent"
android:textAppearance="?android:attr/textAppearanceMedium"
android:textColor="?android:attr/textColorPrimary"
android:paddingBottom="10dip"
/>
<Button
android:id="@+id/pop"
android:text="@string/account_setup_account_type_pop_action"
android:layout_height="wrap_content"
android:layout_width="150sp"
android:layout_width="fill_parent"
android:minWidth="@dimen/button_minWidth"
android:layout_gravity="center_horizontal"
android:layout_centerInParent="true"
android:padding="10dip"
/>
<Button
android:id="@+id/imap"
android:text="@string/account_setup_account_type_imap_action"
android:layout_height="wrap_content"
android:layout_width="150sp"
android:layout_width="fill_parent"
android:minWidth="@dimen/button_minWidth"
android:layout_gravity="center_horizontal"
android:padding="10dip"
/>
<Button
android:id="@+id/webdav"
android:text="@string/account_setup_account_type_webdav_action"
android:layout_height="wrap_content"
android:layout_width="150sp"
android:layout_width="fill_parent"
android:minWidth="@dimen/button_minWidth"
android:layout_gravity="center_horizontal"
android:padding="10dip"
/>
</LinearLayout>

View File

@ -3,6 +3,8 @@
android:layout_width="fill_parent"
android:layout_height="fill_parent"
android:orientation="vertical"
android:padding="6dip"
>
<TextView
android:text="@string/account_setup_basics_instructions"
@ -10,6 +12,7 @@
android:layout_width="fill_parent"
android:textAppearance="?android:attr/textAppearanceMedium"
android:textColor="?android:attr/textColorPrimary"
android:paddingBottom="10dip"
/>
<EditText
android:id="@+id/account_email"
@ -42,7 +45,7 @@
<RelativeLayout
android:layout_width="fill_parent"
android:layout_height="54px"
android:background="@drawable/bottombar_565"
>
<Button
android:id="@+id/manual_setup"

View File

@ -3,6 +3,8 @@
xmlns:android="http://schemas.android.com/apk/res/android"
android:layout_width="fill_parent"
android:layout_height="fill_parent"
android:padding="6dip"
android:orientation="vertical">
<View
android:layout_width="fill_parent"
@ -27,7 +29,8 @@
<RelativeLayout
android:layout_width="fill_parent"
android:layout_height="54px"
android:background="@drawable/bottombar_565">
>
<Button
android:id="@+id/cancel"
android:text="@string/cancel_action"

View File

@ -3,6 +3,7 @@
xmlns:android="http://schemas.android.com/apk/res/android"
android:layout_width="fill_parent"
android:layout_height="fill_parent"
android:scrollbarStyle="outsideInset">
<LinearLayout
android:layout_width="fill_parent"

View File

@ -3,6 +3,8 @@
xmlns:android="http://schemas.android.com/apk/res/android"
android:layout_width="fill_parent"
android:layout_height="fill_parent"
android:padding="6dip"
android:scrollbarStyle="outsideInset">
<LinearLayout
android:layout_width="fill_parent"
@ -162,7 +164,7 @@
<RelativeLayout
android:layout_width="fill_parent"
android:layout_height="54px"
android:background="@drawable/bottombar_565">
>
<Button
android:id="@+id/next"
android:text="@string/next_action"

View File

@ -3,6 +3,7 @@
xmlns:android="http://schemas.android.com/apk/res/android"
android:layout_width="fill_parent"
android:layout_height="fill_parent"
android:orientation="vertical">
<TextView
android:text="@string/account_setup_names_instructions"
@ -39,7 +40,7 @@
<RelativeLayout
android:layout_width="fill_parent"
android:layout_height="54px"
android:background="@drawable/bottombar_565">
>
<Button
android:id="@+id/done"
android:text="@string/done_action"

View File

@ -3,6 +3,8 @@
xmlns:android="http://schemas.android.com/apk/res/android"
android:layout_width="fill_parent"
android:layout_height="fill_parent"
android:padding="6dip"
android:scrollbarStyle="outsideInset">
<LinearLayout
xmlns:android="http://schemas.android.com/apk/res/android"
@ -14,7 +16,8 @@
android:layout_height="wrap_content"
android:layout_width="fill_parent"
android:textAppearance="?android:attr/textAppearanceSmall"
android:textColor="?android:attr/textColorPrimary" />
android:textColor="?android:attr/textColorPrimary"
/>
<Spinner
android:id="@+id/account_check_frequency"
android:layout_height="wrap_content"
@ -33,16 +36,20 @@
android:id="@+id/account_default"
android:layout_height="wrap_content"
android:layout_width="fill_parent"
android:textColor="?android:attr/textColorPrimary"
android:text="@string/account_setup_options_default_label" />
<CheckBox
android:id="@+id/account_notify"
android:layout_height="wrap_content"
android:layout_width="fill_parent"
android:textColor="?android:attr/textColorPrimary"
android:text="@string/account_setup_options_notify_label" />
<CheckBox
android:id="@+id/account_notify_sync"
android:layout_height="wrap_content"
android:layout_width="fill_parent"
android:textColor="?android:attr/textColorPrimary"
android:text="@string/account_setup_options_notify_sync_label" />
<View
android:layout_width="fill_parent"
@ -52,7 +59,7 @@
android:layout_width="fill_parent"
android:layout_height="fill_parent"
android:gravity="bottom|right"
android:background="@drawable/bottombar_565">
>
<Button
android:id="@+id/next"
android:text="@string/next_action"

View File

@ -3,6 +3,8 @@
xmlns:android="http://schemas.android.com/apk/res/android"
android:layout_width="fill_parent"
android:layout_height="fill_parent"
android:padding="6dip"
android:scrollbarStyle="outsideInset">
<LinearLayout
android:layout_width="fill_parent"
@ -82,7 +84,7 @@
<RelativeLayout
android:layout_width="fill_parent"
android:layout_height="54px"
android:background="@drawable/bottombar_565">
>
<Button
android:id="@+id/next"
android:text="@string/next_action"

View File

@ -1,6 +1,7 @@
<?xml version="1.0" encoding="utf-8"?>
<FrameLayout
xmlns:android="http://schemas.android.com/apk/res/android"
android:layout_width="fill_parent"
android:layout_height="fill_parent">
<ListView
@ -23,7 +24,9 @@
android:layout_height="wrap_content"
android:textSize="14sp"
android:text="@string/accounts_welcome"
android:textColor="?android:attr/textColorPrimary" />
android:textColor="?android:attr/textColorPrimary"
android:padding="8dip"
/>
<View
android:layout_width="fill_parent"
android:layout_height="0px"
@ -32,7 +35,7 @@
android:layout_width="fill_parent"
android:layout_height="54px"
android:gravity="bottom|right"
android:background="@drawable/bottombar_565">
>
<Button
android:id="@+id/add_new_account"
android:layout_width="wrap_content"

View File

@ -5,6 +5,7 @@
android:layout_height="?android:attr/listPreferredItemHeight"
android:orientation="horizontal"
android:gravity="center_vertical"
android:paddingRight="4px">
<LinearLayout
android:layout_width="wrap_content"

View File

@ -5,7 +5,8 @@
android:layout_height="38px"
android:paddingRight="1px"
android:paddingTop="2px"
android:background="@drawable/folder_message_list_child_background">
android:background="@drawable/folder_message_list_child_background"
>
<View
android:id="@+id/chip"
android:background="@drawable/appointment_indicator_leftside_1"

View File

@ -3,6 +3,7 @@
xmlns:android="http://schemas.android.com/apk/res/android"
android:layout_width="fill_parent"
android:layout_height="?android:attr/listPreferredItemHeight"
android:background="@drawable/folder_message_list_child_footer_background"
android:gravity="center"
android:orientation="horizontal">
<ProgressBar

View File

@ -5,6 +5,8 @@
android:layout_height="?android:attr/listPreferredItemHeight"
android:orientation="horizontal"
android:gravity="center_vertical"
android:background="@drawable/folder_message_list_group_background"
android:paddingLeft="36px"
android:paddingRight="4px">
<LinearLayout

View File

@ -1,7 +1,7 @@
<?xml version="1.0" encoding="utf-8"?>
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:layout_height="fill_parent" android:layout_width="fill_parent"
android:orientation="vertical" android:background="#ffffff">
android:orientation="vertical" >
<ScrollView android:layout_width="fill_parent"
android:layout_height="0dip" android:layout_weight="1"
android:scrollbarStyle="outsideInset"
@ -15,7 +15,7 @@
android:id="@+id/to" android:layout_width="fill_parent"
android:layout_height="wrap_content"
android:textAppearance="?android:attr/textAppearanceMedium"
android:textColor="?android:attr/textColorSecondaryInverse"
android:textColor="?android:attr/textColorSecondary"
android:layout_marginLeft="6px"
android:layout_marginRight="6px"
android:hint="@string/message_compose_to_hint" />
@ -23,7 +23,7 @@
android:id="@+id/cc" android:layout_width="fill_parent"
android:layout_height="wrap_content"
android:textAppearance="?android:attr/textAppearanceMedium"
android:textColor="?android:attr/textColorSecondaryInverse"
android:textColor="?android:attr/textColorSecondary"
android:layout_marginLeft="6px"
android:layout_marginRight="6px"
android:hint="@string/message_compose_cc_hint"
@ -32,7 +32,7 @@
android:id="@+id/bcc" android:layout_width="fill_parent"
android:layout_height="wrap_content"
android:textAppearance="?android:attr/textAppearanceMedium"
android:textColor="?android:attr/textColorSecondaryInverse"
android:textColor="?android:attr/textColorSecondary"
android:layout_marginLeft="6px"
android:layout_marginRight="6px"
android:hint="@string/message_compose_bcc_hint"
@ -42,7 +42,7 @@
android:singleLine="true"
android:textAppearance="?android:attr/textAppearanceMedium"
android:layout_height="wrap_content"
android:textColor="?android:attr/textColorSecondaryInverse"
android:textColor="?android:attr/textColorSecondary"
android:layout_marginLeft="6px"
android:layout_marginRight="6px"
android:hint="@string/message_compose_subject_hint"
@ -60,7 +60,7 @@
android:background="@drawable/divider_horizontal_email" />
</LinearLayout>
<EditText android:id="@+id/message_content"
android:textColor="?android:attr/textColorSecondaryInverse"
android:textColor="?android:attr/textColorSecondary"
android:layout_width="fill_parent"
android:layout_height="wrap_content"
android:layout_weight="1.0"
@ -75,7 +75,7 @@
<TextView android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:textAppearance="?android:attr/textAppearanceMedium"
android:textColor="?android:attr/textColorSecondaryInverse"
android:textColor="?android:attr/textColorSecondary"
android:text="@string/message_compose_quoted_text_label"
android:layout_alignParentLeft="true"
android:layout_centerVertical="true" />

View File

@ -15,7 +15,7 @@
<TextView
android:id="@+id/attachment_name"
android:textAppearance="?android:attr/textAppearanceMedium"
android:textColor="?android:attr/textColorSecondaryInverse"
android:textColor="?android:attr/textColorSecondary"
android:layout_width="1dip"
android:layout_height="42px"
android:background="@drawable/text_box"

View File

@ -27,7 +27,7 @@
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:textAppearance="?android:attr/textAppearanceMedium"
android:textColor="?android:attr/textColorSecondaryInverse"
android:textColor="?android:attr/textColorSecondary"
android:singleLine="true"
android:ellipsize="middle"
android:layout_alignParentTop="true"
@ -39,7 +39,7 @@
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:textAppearance="?android:attr/textAppearanceSmall"
android:textColor="?android:attr/textColorTertiaryInverse"
android:textColor="?android:attr/textColorTertiary"
android:singleLine="true"
android:ellipsize="middle"
android:layout_alignLeft="@id/attachment_name"

View File

@ -9,7 +9,7 @@
<TextView
android:id="@+id/from"
android:textAppearance="?android:attr/textAppearanceSmall"
android:textColor="?android:attr/textColorPrimaryInverse"
android:textColor="?android:attr/textColorPrimary"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_alignParentLeft="true"
@ -33,7 +33,7 @@
<TextView
android:id="@+id/to_label"
android:textSize="10sp"
android:textColor="?android:attr/textColorSecondaryInverse"
android:textColor="?android:attr/textColorSecondary"
android:textStyle="bold"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
@ -41,7 +41,7 @@
<TextView
android:id="@+id/to"
android:textAppearance="?android:attr/textAppearanceSmall"
android:textColor="?android:attr/textColorSecondaryInverse"
android:textColor="?android:attr/textColorSecondary"
android:textSize="10sp"
android:layout_width="0dip"
android:layout_weight="1.0"
@ -52,7 +52,7 @@
<TextView
android:id="@+id/date"
android:textAppearance="?android:attr/textAppearanceSmall"
android:textColor="?android:attr/textColorPrimaryInverse"
android:textColor="?android:attr/textColorPrimary"
android:layout_width="wrap_content"
android:layout_alignParentTop="true"
android:layout_alignParentRight="true"
@ -67,7 +67,7 @@
<TextView
android:id="@+id/subject"
android:textAppearance="?android:attr/textAppearanceSmall"
android:textColor="?android:attr/textColorSecondaryInverse"
android:textColor="?android:attr/textColorSecondary"
android:textSize="10sp"
android:textStyle="bold"
android:layout_width="0dip"
@ -89,7 +89,7 @@
android:visibility="gone">
<TextView
android:textAppearance="?android:attr/textAppearanceSmall"
android:textColor="?android:attr/textColorSecondaryInverse"
android:textColor="?android:attr/textColorSecondary"
android:text="@string/message_view_show_pictures_instructions"
android:layout_gravity="center"
android:layout_width="0dip"
@ -106,7 +106,7 @@
android:id="@+id/message_content"
android:layout_height="wrap_content"
android:layout_width="fill_parent"
android:background="#ffffff" />
/>
<!-- attachments area -->
<LinearLayout
android:id="@+id/attachments"
@ -114,6 +114,6 @@
android:layout_width="fill_parent"
android:layout_height="wrap_content"
android:padding="4dip"
android:background="#ffffff">
>
</LinearLayout>
</merge>

View File

@ -4,7 +4,7 @@
android:layout_height="50px"
android:orientation="horizontal">
<TextView android:id="@+id/text1"
android:textColor="?android:attr/textColorPrimaryInverse"
android:textColor="?android:attr/textColorPrimary"
android:textAppearance="?android:attr/textAppearanceMedium"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
@ -15,7 +15,7 @@
android:ellipsize="end"
/>
<TextView android:id="@+id/text2"
android:textColor="?android:attr/textColorSecondaryInverse"
android:textColor="?android:attr/textColorSecondary"
android:textAppearance="?android:attr/textAppearanceSmall"
android:layout_width="wrap_content"
android:layout_height="wrap_content"

View File

@ -1,4 +1,6 @@
<?xml version="1.0" encoding="utf-8"?>
<resources>
<color name="folder_message_list_child_background">#3B3B3B</color>
</resources>
<color name="folder_message_list_group_background">#cccccc</color>
<color name="folder_message_list_child_background">#eeeeee</color>
<color name="folder_message_list_child_footer_background">#ffffff</color>
</resources>

View File

@ -2199,10 +2199,7 @@ public class FolderMessageList extends ExpandableListActivity
{
holder.subject.setTextColor(Email.FLAGGED_COLOR);
}
else
{
holder.subject.setTextColor(0xffffffff);
}
holder.subject.setText(message.subject);
holder.from.setText(message.sender);