Cleaning up styles

pull/253/head
Alex Baker 11 years ago
parent f96dfb70d9
commit 50e3f997d8

@ -298,7 +298,7 @@
<activity <activity
android:name="com.todoroo.astrid.core.CustomFilterActivity" android:name="com.todoroo.astrid.core.CustomFilterActivity"
android:theme="@style/Tasks.Dialog.Light" /> android:theme="@style/Tasks.Dialog" />
<activity <activity
android:name="com.todoroo.astrid.core.CustomFilterExposer$DeleteActivity" android:name="com.todoroo.astrid.core.CustomFilterExposer$DeleteActivity"
@ -333,7 +333,7 @@
<activity <activity
android:name="com.todoroo.astrid.actfm.TagSettingsActivityTablet" android:name="com.todoroo.astrid.actfm.TagSettingsActivityTablet"
android:windowSoftInputMode="stateHidden" android:windowSoftInputMode="stateHidden"
android:theme="@style/Tasks.Dialog.Light" /> android:theme="@style/Tasks.Dialog" />
<!-- gtasks --> <!-- gtasks -->
<activity <activity

@ -101,9 +101,6 @@ public class TaskListActivity extends AstridActivity implements OnPageChangeList
navigationDrawer.setUp(drawerLayout); navigationDrawer.setUp(drawerLayout);
// drawerLayout.setStatusBarBackgroundColor(getResources().getColor(android.R.color.holo_blue_bright)); // drawerLayout.setStatusBarBackgroundColor(getResources().getColor(android.R.color.holo_blue_bright));
TypedValue typedValue = new TypedValue();
getTheme().resolveAttribute(R.attr.ic_drawer, typedValue, true);
initializeFragments(); initializeFragments();
Bundle extras = getIntent().getExtras(); Bundle extras = getIntent().getExtras();
@ -239,8 +236,8 @@ public class TaskListActivity extends AstridActivity implements OnPageChangeList
Filter newList = getIntent().getParcelableExtra(TOKEN_SWITCH_TO_FILTER); Filter newList = getIntent().getParcelableExtra(TOKEN_SWITCH_TO_FILTER);
getIntent().removeExtra(TOKEN_SWITCH_TO_FILTER); getIntent().removeExtra(TOKEN_SWITCH_TO_FILTER);
onFilterItemClicked(newList); onFilterItemClicked(newList);
} else { // } else {
navigationDrawer.restoreLastSelected(); // navigationDrawer.restoreLastSelected();
} }
if (getIntent().hasExtra(OPEN_TASK)) { if (getIntent().hasExtra(OPEN_TASK)) {

@ -36,7 +36,7 @@ public class ActivityPreferences extends Preferences {
} }
public void applyDialogTheme() { public void applyDialogTheme() {
applyTheme(R.style.Tasks_Dialog_Light); applyTheme(R.style.Tasks_Dialog);
} }
public void applyTranslucentDialogTheme() { public void applyTranslucentDialogTheme() {
@ -50,7 +50,7 @@ public class ActivityPreferences extends Preferences {
public int getEditDialogTheme() { public int getEditDialogTheme() {
boolean ics = AndroidUtilities.getSdkVersion() >= 14; boolean ics = AndroidUtilities.getSdkVersion() >= 14;
return ics ? R.style.TEA_Dialog_Light_ICS : R.style.TEA_Dialog_Light; return ics ? R.style.TEA_Dialog_Light_ICS : R.style.TEA_Dialog;
} }
/** /**

@ -145,18 +145,12 @@ public class NavigationDrawerFragment extends InjectingFragment {
// set a custom shadow that overlays the main content when the drawer opens // set a custom shadow that overlays the main content when the drawer opens
mDrawerLayout.setDrawerShadow(R.drawable.drawer_shadow, GravityCompat.START); mDrawerLayout.setDrawerShadow(R.drawable.drawer_shadow, GravityCompat.START);
// set up the drawer's list view with items and click listener
// ActionBar actionBar = getActionBar();
// actionBar.setDisplayHomeAsUpEnabled(true);
// actionBar.setHomeButtonEnabled(true);
// ActionBarDrawerToggle ties together the the proper interactions // ActionBarDrawerToggle ties together the the proper interactions
// between the navigation drawer and the action bar app icon. // between the navigation drawer and the action bar app icon.
mDrawerToggle = new ActionBarDrawerToggle( mDrawerToggle = new ActionBarDrawerToggle(
getActivity(), /* host Activity */ getActivity(), /* host Activity */
mDrawerLayout, /* DrawerLayout object */ mDrawerLayout, /* DrawerLayout object */
// R.drawable.ic_drawer, /* nav drawer image to replace 'Up' caret */
R.string.navigation_drawer_open, /* "open drawer" description for accessibility */ R.string.navigation_drawer_open, /* "open drawer" description for accessibility */
R.string.navigation_drawer_close /* "close drawer" description for accessibility */ R.string.navigation_drawer_close /* "close drawer" description for accessibility */
) { ) {
@ -244,16 +238,6 @@ public class NavigationDrawerFragment extends InjectingFragment {
mDrawerToggle.onConfigurationChanged(newConfig); mDrawerToggle.onConfigurationChanged(newConfig);
} }
@Override
public void onCreateOptionsMenu(Menu menu, MenuInflater inflater) {
if (mDrawerLayout != null && isDrawerOpen()) {
menu.clear();
// showGlobalContextActionBar();
}
inflater.inflate(R.menu.global, menu);
super.onCreateOptionsMenu(menu, inflater);
}
@Override @Override
public boolean onContextItemSelected(android.view.MenuItem item) { public boolean onContextItemSelected(android.view.MenuItem item) {
// called when context menu appears // called when context menu appears
@ -364,21 +348,6 @@ public class NavigationDrawerFragment extends InjectingFragment {
activity.getString(R.string.FLA_toast_onCreateShortcut, label), Toast.LENGTH_LONG).show(); activity.getString(R.string.FLA_toast_onCreateShortcut, label), Toast.LENGTH_LONG).show();
} }
/**
* Per the navigation drawer design guidelines, updates the action bar to show the global app
* 'context', rather than just what's in the current screen.
*/
private void showGlobalContextActionBar() {
ActionBar actionBar = getActionBar();
actionBar.setDisplayShowTitleEnabled(true);
actionBar.setNavigationMode(ActionBar.NAVIGATION_MODE_STANDARD);
actionBar.setTitle(R.string.app_name);
}
private ActionBar getActionBar() {
return ((ActionBarActivity) getActivity()).getSupportActionBar();
}
public void closeMenu() { public void closeMenu() {
if (mDrawerLayout != null) { if (mDrawerLayout != null) {
mDrawerLayout.closeDrawer(mFragmentContainerView); mDrawerLayout.closeDrawer(mFragmentContainerView);

Binary file not shown.

Before

Width:  |  Height:  |  Size: 1.4 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 408 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 225 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 217 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 2.8 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 2.1 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 267 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 262 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 2.8 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 264 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 264 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 202 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 882 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 268 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 156 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 197 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 192 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 2.8 KiB

@ -48,5 +48,5 @@
android:id="@+id/TEA_Separator" android:id="@+id/TEA_Separator"
android:layout_width="fill_parent" android:layout_width="fill_parent"
android:layout_height="1px" android:layout_height="1px"
style="@style/TEA_Separator" /> android:background="?android:attr/listDivider" />
</LinearLayout> </LinearLayout>

@ -39,7 +39,8 @@
android:id="@+id/reminder_message" android:id="@+id/reminder_message"
android:layout_width="fill_parent" android:layout_width="fill_parent"
android:layout_height="wrap_content" android:layout_height="wrap_content"
style="@style/TextAppearance.TLA_Reminder" android:textSize="16sp"
android:textColor="#000000"
android:gravity="center_vertical"/> android:gravity="center_vertical"/>
</LinearLayout> </LinearLayout>
</LinearLayout> </LinearLayout>

@ -28,13 +28,13 @@
android:layout_height="wrap_content" android:layout_height="wrap_content"
android:layout_weight="1" android:layout_weight="1"
android:gravity="left" android:gravity="left"
style="@style/TextAppearance.EditRowDisplay" /> android:textColor="?attr/asThemeTextColor" />
</LinearLayout> </LinearLayout>
<View <View
android:id="@+id/TEA_Separator" android:id="@+id/TEA_Separator"
android:layout_width="fill_parent" android:layout_width="fill_parent"
android:layout_height="1px" android:layout_height="1px"
style="@style/TEA_Separator" /> android:background="?android:attr/listDivider" />
</LinearLayout> </LinearLayout>

@ -29,13 +29,13 @@
android:layout_height="wrap_content" android:layout_height="wrap_content"
android:layout_weight="1" android:layout_weight="1"
android:gravity="left" android:gravity="left"
style="@style/TextAppearance.EditRowDisplay" /> android:textColor="?attr/asThemeTextColor" />
</LinearLayout> </LinearLayout>
<View <View
android:id="@+id/TEA_Separator" android:id="@+id/TEA_Separator"
android:layout_width="fill_parent" android:layout_width="fill_parent"
android:layout_height="1px" android:layout_height="1px"
style="@style/TEA_Separator" /> android:background="?android:attr/listDivider" />
</LinearLayout> </LinearLayout>

@ -35,7 +35,7 @@
android:id="@+id/TEA_Separator" android:id="@+id/TEA_Separator"
android:layout_width="fill_parent" android:layout_width="fill_parent"
android:layout_height="1px" android:layout_height="1px"
style="@style/TEA_Separator" /> android:background="?android:attr/listDivider" />
</LinearLayout> </LinearLayout>

@ -29,13 +29,13 @@
android:gravity="left" android:gravity="left"
android:maxLines="1" android:maxLines="1"
android:ellipsize="end" android:ellipsize="end"
style="@style/TextAppearance.EditRowDisplay" /> android:textColor="?attr/asThemeTextColor" />
</LinearLayout> </LinearLayout>
<View <View
android:layout_width="fill_parent" android:layout_width="fill_parent"
android:layout_height="1px" android:layout_height="1px"
android:padding="5dip" android:padding="5dip"
style="@style/TEA_Separator" /> android:background="?android:attr/listDivider" />
</LinearLayout> </LinearLayout>

@ -32,7 +32,6 @@
android:layout_height="wrap_content" android:layout_height="wrap_content"
android:gravity="left" android:gravity="left"
android:text="@string/TEA_importance_label" android:text="@string/TEA_importance_label"
style="@style/TextAppearance.EditRowDisplay"
android:textColor="@color/task_edit_deadline_gray"/> android:textColor="@color/task_edit_deadline_gray"/>
</LinearLayout> </LinearLayout>
@ -40,6 +39,6 @@
android:id="@+id/TEA_Separator" android:id="@+id/TEA_Separator"
android:layout_width="fill_parent" android:layout_width="fill_parent"
android:layout_height="1px" android:layout_height="1px"
style="@style/TEA_Separator" /> android:background="?android:attr/listDivider" />
</LinearLayout> </LinearLayout>

@ -27,7 +27,7 @@
android:scaleType="fitCenter"/> android:scaleType="fitCenter"/>
<TextView <TextView
android:id="@+id/display_row_edit" android:id="@+id/display_row_edit"
style="@style/TextAppearance.EditRowDisplay" android:textColor="?attr/asThemeTextColor"
android:layout_width="fill_parent" android:layout_width="fill_parent"
android:layout_height="wrap_content" android:layout_height="wrap_content"
android:paddingTop="10dip" android:paddingTop="10dip"
@ -37,7 +37,7 @@
<View <View
android:id="@+id/TEA_Separator" android:id="@+id/TEA_Separator"
style="@style/TEA_Separator" android:background="?android:attr/listDivider"
android:layout_width="fill_parent" android:layout_width="fill_parent"
android:layout_height="1px" /> android:layout_height="1px" />

@ -63,7 +63,7 @@
<View <View
android:layout_width="fill_parent" android:layout_width="fill_parent"
android:layout_height="1px" android:layout_height="1px"
style="@style/TEA_Separator" /> android:background="?android:attr/listDivider" />
<LinearLayout <LinearLayout
android:id="@+id/reminder_alarm_container" android:id="@+id/reminder_alarm_container"
android:layout_width="fill_parent" android:layout_width="fill_parent"
@ -84,7 +84,7 @@
android:layout_weight="1" android:layout_weight="1"
android:gravity="right" android:gravity="right"
android:paddingLeft="10dip" android:paddingLeft="10dip"
style="@style/TextAppearance.EditRowDisplay" /> android:textColor="?attr/asThemeTextColor" />
<com.todoroo.astrid.ui.ErrorCatchingSpinner <com.todoroo.astrid.ui.ErrorCatchingSpinner
android:id="@+id/reminder_alarm" android:id="@+id/reminder_alarm"
android:layout_width="0dip" android:layout_width="0dip"
@ -94,7 +94,7 @@
android:id="@+id/TEA_Separator" android:id="@+id/TEA_Separator"
android:layout_width="fill_parent" android:layout_width="fill_parent"
android:layout_height="1px" android:layout_height="1px"
style="@style/TEA_Separator" /> android:background="?android:attr/listDivider" />
</LinearLayout> </LinearLayout>
</ScrollView> </ScrollView>

@ -28,16 +28,16 @@
android:layout_weight="1" android:layout_weight="1"
android:gravity="left" android:gravity="left"
android:paddingLeft="5dip" android:paddingLeft="5dip"
style="@style/TextAppearance.EditRowDisplay" /> android:textColor="?attr/asThemeTextColor" />
<View <View
android:layout_width="1px" android:layout_width="1px"
android:layout_height="fill_parent" android:layout_height="fill_parent"
style="@style/TEA_Separator" /> android:background="?android:attr/listDivider" />
</LinearLayout> </LinearLayout>
<View <View
android:layout_width="fill_parent" android:layout_width="fill_parent"
android:layout_height="1px" android:layout_height="1px"
android:padding="5dip" android:padding="5dip"
style="@style/TEA_Separator" /> android:background="?android:attr/listDivider" />
</LinearLayout> </LinearLayout>

@ -32,13 +32,13 @@
android:layout_weight="1" android:layout_weight="1"
android:gravity="right" android:gravity="right"
android:paddingLeft="10dip" android:paddingLeft="10dip"
style="@style/TextAppearance.EditRowDisplay" /> android:textColor="?attr/asThemeTextColor" />
</LinearLayout> </LinearLayout>
<View <View
android:id="@+id/TEA_Separator" android:id="@+id/TEA_Separator"
android:layout_width="fill_parent" android:layout_width="fill_parent"
android:layout_height="1px" android:layout_height="1px"
style="@style/TEA_Separator" /> android:background="?android:attr/listDivider" />
<!-- elapsed time --> <!-- elapsed time -->
<LinearLayout <LinearLayout
android:layout_width="fill_parent" android:layout_width="fill_parent"
@ -59,7 +59,7 @@
android:layout_weight="1" android:layout_weight="1"
android:gravity="right" android:gravity="right"
android:paddingLeft="10dip" android:paddingLeft="10dip"
style="@style/TextAppearance.EditRowDisplay" /> android:textColor="?attr/asThemeTextColor" />
</LinearLayout> </LinearLayout>
<include layout="@layout/control_dialog_ok"/> <include layout="@layout/control_dialog_ok"/>

@ -8,7 +8,7 @@
android:layout_width="fill_parent" android:layout_width="fill_parent"
android:layout_height="fill_parent" android:layout_height="fill_parent"
android:orientation="vertical" android:orientation="vertical"
style="@style/Content"> android:background="?attr/asContentBackground">
<!-- Filter Name --> <!-- Filter Name -->
<EditText android:id="@+id/filterName" <EditText android:id="@+id/filterName"

@ -27,7 +27,7 @@
android:layout_width="fill_parent" android:layout_width="fill_parent"
android:layout_height="1px" android:layout_height="1px"
android:layout_marginBottom="1dip" android:layout_marginBottom="1dip"
style="@style/TEA_Separator" /> android:background="?android:attr/listDivider" />
<LinearLayout <LinearLayout
android:layout_width="fill_parent" android:layout_width="fill_parent"
android:layout_height="wrap_content" android:layout_height="wrap_content"
@ -56,7 +56,7 @@
android:layout_width="fill_parent" android:layout_width="fill_parent"
android:layout_height="1px" android:layout_height="1px"
android:layout_marginTop="1dip" android:layout_marginTop="1dip"
style="@style/TEA_Separator" /> android:background="?android:attr/listDivider" />
<LinearLayout <LinearLayout
android:id="@+id/datetime_extras" android:id="@+id/datetime_extras"
android:layout_width="fill_parent" android:layout_width="fill_parent"

@ -18,7 +18,7 @@
android:maxLines="1" android:maxLines="1"
android:singleLine="true" android:singleLine="true"
android:ellipsize="end" android:ellipsize="end"
android:textAppearance="@style/TextAppearance.EditRowDisplay"/> android:textColor="?attr/asThemeTextColor" />
<TextView <TextView
android:id="@+id/file_type" android:id="@+id/file_type"
android:minWidth="37dip" android:minWidth="37dip"

@ -20,7 +20,7 @@
android:paddingRight="5dip" android:paddingRight="5dip"
android:paddingLeft="3dip" android:paddingLeft="3dip"
android:layout_weight="1" android:layout_weight="1"
android:textAppearance="@style/TextAppearance.EditRowDisplay" android:textColor="?attr/asThemeTextColor"
android:gravity="left|center_vertical"/> android:gravity="left|center_vertical"/>
<TextView <TextView
android:id="@+id/file_type" android:id="@+id/file_type"

@ -7,7 +7,7 @@
<FrameLayout xmlns:android="http://schemas.android.com/apk/res/android" <FrameLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:layout_width="fill_parent" android:layout_width="fill_parent"
android:layout_height="fill_parent" android:layout_height="fill_parent"
style="@style/Content"> android:background="?attr/asContentBackground">
<ListView android:id="@android:id/list" <ListView android:id="@android:id/list"
android:layout_width="fill_parent" android:layout_width="fill_parent"
@ -25,8 +25,8 @@
android:layout_width="fill_parent" android:layout_width="fill_parent"
android:layout_height="wrap_content" android:layout_height="wrap_content"
android:text="@string/gtasks_GLA_noaccounts" android:text="@string/gtasks_GLA_noaccounts"
android:gravity="center" android:textSize="20sp"
style="@style/TextAppearance.TLA_NoItems" /> android:gravity="center" />
<Button android:id="@+id/empty_button" <Button android:id="@+id/empty_button"
android:layout_width="fill_parent" android:layout_width="fill_parent"

@ -9,7 +9,7 @@
android:layout_height="wrap_content" android:layout_height="wrap_content"
android:paddingLeft="10dip" android:paddingLeft="10dip"
android:paddingRight="10dip" android:paddingRight="10dip"
style="@style/Content"> android:background="?attr/asContentBackground">
<LinearLayout <LinearLayout
android:layout_width="fill_parent" android:layout_width="fill_parent"
@ -64,7 +64,7 @@
<View <View
android:id="@+id/TEA_Separator" android:id="@+id/TEA_Separator"
style="@style/TEA_Separator" android:background="?android:attr/listDivider"
android:layout_width="fill_parent" android:layout_width="fill_parent"
android:layout_height="1px" /> android:layout_height="1px" />

@ -11,7 +11,7 @@
<ScrollView <ScrollView
android:id="@+id/settings" android:id="@+id/settings"
style="@style/Content_EditScroll" android:background="?attr/asEditBackground"
android:layout_width="fill_parent" android:layout_width="fill_parent"
android:layout_height="fill_parent" android:layout_height="fill_parent"
android:layout_weight="100" android:layout_weight="100"
@ -40,7 +40,7 @@
android:text="@string/actfm_TVA_tag_label" /> android:text="@string/actfm_TVA_tag_label" />
<LinearLayout <LinearLayout
style="@style/EditRow" android:background="?attr/asEditRowBackground"
android:layout_width="fill_parent" android:layout_width="fill_parent"
android:layout_height="wrap_content" android:layout_height="wrap_content"
android:layout_below="@id/tag_label" android:layout_below="@id/tag_label"

@ -6,7 +6,7 @@
--> -->
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" <LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:id="@+id/taskEditParent" android:id="@+id/taskEditParent"
style="@style/Content" android:background="?attr/asContentBackground"
android:layout_width="fill_parent" android:layout_width="fill_parent"
android:layout_height="fill_parent" android:layout_height="fill_parent"
android:orientation="vertical" > android:orientation="vertical" >
@ -15,7 +15,7 @@
<ScrollView <ScrollView
android:id="@+id/edit_scroll" android:id="@+id/edit_scroll"
style="@style/Content_EditScroll" android:background="?attr/asEditBackground"
android:layout_width="fill_parent" android:layout_width="fill_parent"
android:layout_height="fill_parent" android:layout_height="fill_parent"
android:layout_weight="100" > android:layout_weight="100" >
@ -29,7 +29,7 @@
<LinearLayout <LinearLayout
android:id="@+id/title_controls" android:id="@+id/title_controls"
style="@style/EditRow" android:background="?attr/asEditRowBackground"
android:layout_width="fill_parent" android:layout_width="fill_parent"
android:layout_height="wrap_content" android:layout_height="wrap_content"
android:layout_margin="3dip" android:layout_margin="3dip"
@ -41,7 +41,7 @@
<LinearLayout <LinearLayout
android:id="@+id/basic_controls" android:id="@+id/basic_controls"
style="@style/EditRow" android:background="?attr/asEditRowBackground"
android:layout_width="fill_parent" android:layout_width="fill_parent"
android:layout_height="fill_parent" android:layout_height="fill_parent"
android:layout_margin="3dip" android:layout_margin="3dip"
@ -50,7 +50,7 @@
<android.support.v4.view.ViewPager <android.support.v4.view.ViewPager
android:id="@+id/pager" android:id="@+id/pager"
style="@style/EditRow" android:background="?attr/asEditRowBackground"
android:layout_width="fill_parent" android:layout_width="fill_parent"
android:layout_height="wrap_content" android:layout_height="wrap_content"
android:layout_margin="3dip" android:layout_margin="3dip"
@ -69,7 +69,6 @@
<LinearLayout <LinearLayout
android:id="@+id/updatesFooter" android:id="@+id/updatesFooter"
style="@style/Content"
android:layout_width="fill_parent" android:layout_width="fill_parent"
android:layout_height="wrap_content" android:layout_height="wrap_content"
android:layout_weight="1" android:layout_weight="1"

@ -7,7 +7,7 @@
xmlns:android="http://schemas.android.com/apk/res/android" xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:tasks="http://schemas.android.com/apk/res-auto" xmlns:tasks="http://schemas.android.com/apk/res-auto"
android:id="@+id/taskListParent" android:id="@+id/taskListParent"
style="@style/Content" android:background="?attr/asContentBackground"
android:layout_width="fill_parent" android:layout_width="fill_parent"
android:layout_height="fill_parent" android:layout_height="fill_parent"
android:descendantFocusability="beforeDescendants" android:descendantFocusability="beforeDescendants"

@ -9,7 +9,7 @@
<TextView <TextView
android:id="@+id/empty_text" android:id="@+id/empty_text"
style="@style/TextAppearance.TLA_NoItems" android:textSize="20sp"
android:layout_width="wrap_content" android:layout_width="wrap_content"
android:layout_height="wrap_content" android:layout_height="wrap_content"
android:layout_gravity="center" android:layout_gravity="center"

@ -6,7 +6,7 @@
android:fitsSystemWindows="true"> android:fitsSystemWindows="true">
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" <LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
style="@style/Content" android:background="?attr/asContentBackground"
android:layout_width="match_parent" android:layout_width="match_parent"
android:layout_height="match_parent" android:layout_height="match_parent"
android:orientation="horizontal"> android:orientation="horizontal">

@ -14,7 +14,7 @@
<FrameLayout xmlns:android="http://schemas.android.com/apk/res/android" <FrameLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:id="@+id/tasklist_fragment_container" android:id="@+id/tasklist_fragment_container"
style="@style/Content" android:background="?attr/asContentBackground"
android:layout_width="match_parent" android:layout_width="match_parent"
android:layout_height="match_parent" /> android:layout_height="match_parent" />

@ -5,7 +5,7 @@
android:layout_width="fill_parent" android:layout_width="fill_parent"
android:layout_height="fill_parent" android:layout_height="fill_parent"
android:orientation="vertical" android:orientation="vertical"
style="@style/Content"> android:background="?attr/asContentBackground">
<!-- Title --> <!-- Title -->
<TextView <TextView

@ -1,20 +0,0 @@
<?xml version="1.0" encoding="utf-8"?>
<menu xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:tasks="http://schemas.android.com/apk/res-auto">
<item
android:id="@+id/menu_new_list"
android:title="@string/FLA_new_list"
tasks:showAsAction="never" />
<item
android:id="@+id/menu_new_filter"
android:title="@string/FLA_new_filter"
tasks:showAsAction="never" />
<item
android:id="@+id/menu_support"
android:title="@string/TLA_menu_support"
tasks:showAsAction="never" />
<item
android:id="@+id/menu_settings"
android:title="@string/TLA_menu_settings"
tasks:showAsAction="never" />
</menu>

@ -14,7 +14,6 @@
android:icon="?attr/ic_action_search" android:icon="?attr/ic_action_search"
tasks:showAsAction="ifRoom|collapseActionView" tasks:showAsAction="ifRoom|collapseActionView"
tasks:actionViewClass="android.support.v7.widget.SearchView"/> tasks:actionViewClass="android.support.v7.widget.SearchView"/>
<item <item
android:id="@+id/menu_delete_list" android:id="@+id/menu_delete_list"
android:title="@string/tag_cm_delete" android:title="@string/tag_cm_delete"
@ -34,4 +33,20 @@
android:title="@string/gtasks_GTA_clear_completed" android:title="@string/gtasks_GTA_clear_completed"
android:visible="false" android:visible="false"
tasks:showAsAction="never" /> tasks:showAsAction="never" />
<item
android:id="@+id/menu_new_list"
android:title="@string/FLA_new_list"
tasks:showAsAction="never" />
<item
android:id="@+id/menu_new_filter"
android:title="@string/FLA_new_filter"
tasks:showAsAction="never" />
<item
android:id="@+id/menu_support"
android:title="@string/TLA_menu_support"
tasks:showAsAction="never" />
<item
android:id="@+id/menu_settings"
android:title="@string/TLA_menu_settings"
tasks:showAsAction="never" />
</menu> </menu>

@ -2,28 +2,13 @@
<resources> <resources>
<style name="AstridActionBarStyle" parent="@style/Widget.AppCompat.ActionBar"> <style name="AstridActionBarStyle" parent="@style/Widget.AppCompat.ActionBar">
<item name="android:displayOptions">showHome|showTitle</item> <item name="android:displayOptions">showHome|showTitle</item>
<item name="android:background">@drawable/header_day_blue</item>
</style> </style>
<style name="AstridActionBarStyle.Dialog"> <style name="AstridActionBarStyle.Dialog">
<item name="android:background">@drawable/header_background</item>
<item name="android:displayOptions">showHome|showTitle</item>
</style>
<style name="AstridActionBarStyle.Dialog.Light">
<item name="android:background">@android:color/white</item> <item name="android:background">@android:color/white</item>
<item name="android:displayOptions">showHome|showTitle</item> <item name="android:displayOptions">showHome|showTitle</item>
</style> </style>
<style name="TEA_Dialog_ICS" parent="@android:style/Theme.Holo.Dialog">
<item name="android:windowFrame">@null</item>
<item name="android:windowTitleStyle">@style/TEA_DialogWindowTitle</item>
<item name="android:windowIsFloating">true</item>
<item name="android:windowAnimationStyle">@android:style/Animation.Dialog</item>
<item name="android:windowSoftInputMode">stateUnspecified|adjustResize</item>
<item name="asTextColor">#ffffff</item>
</style>
<style name="TEA_Dialog_Light_ICS" parent="@android:style/Theme.Holo.Light.Dialog"> <style name="TEA_Dialog_Light_ICS" parent="@android:style/Theme.Holo.Light.Dialog">
<item name="android:windowFrame">@null</item> <item name="android:windowFrame">@null</item>
<item name="android:windowTitleStyle">@style/TEA_DialogWindowTitle</item> <item name="android:windowTitleStyle">@style/TEA_DialogWindowTitle</item>

@ -1,10 +0,0 @@
<?xml version="1.0" encoding="utf-8"?>
<resources>
<!--<style name="Tasks" parent="Theme.AppCompat.NoActionBar">-->
<!---->
<!--</style>-->
<!---->
<!--<style name="Tasks.Light" parent="Theme.AppCompat.Light.NoActionBar">-->
<!---->
<!--</style>-->
</resources>

@ -31,7 +31,6 @@
<attr name="ic_action_camera" format="reference"/> <attr name="ic_action_camera" format="reference"/>
<attr name="ic_action_mic" format="reference" /> <attr name="ic_action_mic" format="reference" />
<attr name="ic_action_search" format="reference"/> <attr name="ic_action_search" format="reference"/>
<attr name="ic_drawer" format="reference"/>
<attr name="drawer_background" format="color"/> <attr name="drawer_background" format="color"/>
<attr name="drawer_text" format="color"/> <attr name="drawer_text" format="color"/>
<attr name="task_edit_theme_color" format="color"/> <attr name="task_edit_theme_color" format="color"/>

@ -1,29 +1,12 @@
<?xml version="1.0" encoding="utf-8"?>
<!--
** Copyright (c) 2012 Todoroo Inc
**
** See the file "LICENSE" for the full license governing this code.
-->
<resources xmlns:android="http://schemas.android.com/apk/res/android"> <resources xmlns:android="http://schemas.android.com/apk/res/android">
<!-- ========================================================== General --> <!-- ========================================================== General -->
<style name="ActionBarPopupThemeOverlay" parent="Widget.AppCompat.Light.PopupMenu" />
<style name="DrawerArrowStyle" parent="Widget.AppCompat.DrawerArrowToggle">
<item name="spinBars">false</item>
</style>
<style name="AstridActionBarStyle" parent="@style/Widget.AppCompat.ActionBar">
<item name="displayOptions">showHome|showTitle</item>
<item name="background">@drawable/header_day_blue</item>
</style>
<style name="AstridOverflowStyle" parent="Widget.AppCompat.ActionButton.Overflow">
<item name="android:src">@drawable/ic_action_overflow</item>
</style>
<style name="Tasks" parent="Theme.AppCompat.Light.NoActionBar"> <style name="Tasks" parent="Theme.AppCompat.Light.NoActionBar">
<!--<item name="colorPrimary">@android:color/holo_orange_light</item>-->
<item name="colorPrimaryDark">#636363</item>
<!--<item name="colorAccent">@android:color/holo_purple</item>-->
<item name="android:windowBackground">@null</item> <item name="android:windowBackground">@null</item>
<item name="asDueDateOverdueColor">#ee5555</item> <item name="asDueDateOverdueColor">#ee5555</item>
<item name="asDueDateCompletedColor">#ff777777</item> <item name="asDueDateCompletedColor">#ff777777</item>
@ -31,7 +14,7 @@
<item name="asEditTextBackground">@null</item> <item name="asEditTextBackground">@null</item>
<item name="android:windowDrawsSystemBarBackgrounds">true</item> <item name="android:windowDrawsSystemBarBackgrounds">true</item>
<item name="android:statusBarColor">@android:color/transparent</item> <!--<item name="android:statusBarColor">@android:color/transparent</item>-->
<item name="asContentBackground">@android:color/white</item> <item name="asContentBackground">@android:color/white</item>
<item name="asEditBackground">@android:color/white</item> <item name="asEditBackground">@android:color/white</item>
<item name="asTextColor">#000000</item> <item name="asTextColor">#000000</item>
@ -52,7 +35,6 @@
<item name="ic_action_camera">@drawable/ic_action_camera</item> <item name="ic_action_camera">@drawable/ic_action_camera</item>
<item name="ic_action_mic">@drawable/ic_action_mic</item> <item name="ic_action_mic">@drawable/ic_action_mic</item>
<item name="ic_action_search">@drawable/ic_action_search</item> <item name="ic_action_search">@drawable/ic_action_search</item>
<item name="ic_drawer">@drawable/ic_drawer</item>
<item name="task_edit_theme_color">@color/task_edit_selected</item> <item name="task_edit_theme_color">@color/task_edit_selected</item>
<item name="importance_background_selected">@drawable/importance_background_selected</item> <item name="importance_background_selected">@drawable/importance_background_selected</item>
<item name="tea_icn_files">@drawable/tea_icn_files</item> <item name="tea_icn_files">@drawable/tea_icn_files</item>
@ -68,19 +50,23 @@
<item name="drawer_text">#000</item> <item name="drawer_text">#000</item>
<item name="drawer_selected">#dddddd</item> <item name="drawer_selected">#dddddd</item>
<item name="android:popupMenuStyle">@style/Widget.AppCompat.Light.PopupMenu</item>
<item name="android:listPopupWindowStyle">@style/Widget.AppCompat.Light.PopupMenu</item>
<item name="android:dropDownListViewStyle">@style/Widget.AppCompat.Light.ListView.DropDown</item>
<!-- actionbar-styling --> <!-- actionbar-styling -->
<item name="drawerArrowStyle">@style/DrawerArrowStyle</item> <item name="drawerArrowStyle">@style/DrawerArrowStyle</item>
<item name="android:actionBarStyle">@style/AstridActionBarStyle</item> <item name="android:actionBarStyle">@style/AstridActionBarStyle</item>
<item name="actionBarStyle">@style/AstridActionBarStyle</item> <item name="actionBarStyle">@style/AstridActionBarStyle</item>
<item name="android:actionOverflowButtonStyle">@style/AstridOverflowStyle</item>
<item name="actionOverflowButtonStyle">@style/AstridOverflowStyle</item>
<item name="android:windowContentOverlay">@null</item> <item name="android:windowContentOverlay">@null</item>
</style> </style>
<style name="ActionBarPopupThemeOverlay" parent="Widget.AppCompat.Light.PopupMenu" />
<style name="DrawerArrowStyle" parent="Widget.AppCompat.DrawerArrowToggle">
<item name="spinBars">false</item>
</style>
<style name="AstridActionBarStyle" parent="@style/Widget.AppCompat.ActionBar">
<item name="displayOptions">showHome|showTitle</item>
</style>
<style name="Tasks.FullTransparent" parent="@style/Theme.AppCompat"> <style name="Tasks.FullTransparent" parent="@style/Theme.AppCompat">
<item name="android:windowIsTranslucent">true</item> <item name="android:windowIsTranslucent">true</item>
<item name="android:windowBackground">@android:color/transparent</item> <item name="android:windowBackground">@android:color/transparent</item>
@ -89,11 +75,11 @@
</style> </style>
<style name="AstridActionBarStyle.Dialog"> <style name="AstridActionBarStyle.Dialog">
<item name="background">@drawable/header_background</item> <item name="background">@android:color/white</item>
<item name="displayOptions">showHome|showTitle</item> <item name="displayOptions">showHome|showTitle</item>
</style> </style>
<style name="Tasks.Dialog.Light" parent="@android:style/Theme.Dialog"> <style name="Tasks.Dialog" parent="@android:style/Theme.Dialog">
<!--<item name="android:windowBackground">@null</item>--> <!--<item name="android:windowBackground">@null</item>-->
<item name="asDueDateOverdueColor">#ffee5555</item> <item name="asDueDateOverdueColor">#ffee5555</item>
<item name="asDueDateCompletedColor">#ff777777</item> <item name="asDueDateCompletedColor">#ff777777</item>
@ -117,29 +103,16 @@
<item name="asDetailsColor">#ff6666aa</item> <item name="asDetailsColor">#ff6666aa</item>
<item name="asDueDateColor">#878787</item> <item name="asDueDateColor">#878787</item>
<!-- actionbar-styling --> <!-- actionbar-styling -->
<item name="android:actionBarStyle">@style/AstridActionBarStyle.Dialog.Light</item> <item name="android:actionBarStyle">@style/AstridActionBarStyle.Dialog</item>
<item name="actionBarStyle">@style/AstridActionBarStyle.Dialog.Light</item> <item name="actionBarStyle">@style/AstridActionBarStyle.Dialog</item>
<item name="asEditBackground">#dddddd</item> <item name="asEditBackground">#dddddd</item>
<item name="asEditRowBackground">@drawable/task_edit_background_transparent_white</item> <item name="asEditRowBackground">@drawable/task_edit_background_transparent_white</item>
<item name="asThemeTextColor">@color/blue_theme_color</item> <item name="asThemeTextColor">@color/blue_theme_color</item>
</style> </style>
<style name="AstridActionBarStyle.Dialog.Light">
<item name="background">@android:color/white</item>
<item name="displayOptions">showHome|showTitle</item>
</style>
<!--================================================== General == --> <!--================================================== General == -->
<style name="Content">
<item name="android:background">?attr/asContentBackground</item>
</style>
<style name="TEA_Separator">
<item name="android:background">?android:attr/listDivider</item>
</style>
<style name="TextAppearance" parent="android:TextAppearance"> <style name="TextAppearance" parent="android:TextAppearance">
<item name="android:textColor">?attr/asTextColor</item> <item name="android:textColor">?attr/asTextColor</item>
</style> </style>
@ -164,16 +137,6 @@
<!--=============================================== TaskListActivity == --> <!--=============================================== TaskListActivity == -->
<style name="TextAppearance.TLA_NoItems">
<item name="android:textSize">20sp</item>
<item name="android:gravity">center</item>
</style>
<style name="TextAppearance.TLA_Reminder">
<item name="android:textSize">16sp</item>
<item name="android:textColor">#000000</item>
</style>
<style name="ListView"> <style name="ListView">
<item name="android:divider">?attr/asListDividerColor</item> <item name="android:divider">?attr/asListDividerColor</item>
<item name="android:dividerHeight">1px</item> <item name="android:dividerHeight">1px</item>
@ -184,29 +147,12 @@
<!-- =============================================== TaskEditActivity == --> <!-- =============================================== TaskEditActivity == -->
<style name="Content_EditScroll">
<item name="android:background">?attr/asEditBackground</item>
</style>
<style name="EditRow">
<item name="android:background">?attr/asEditRowBackground</item>
</style>
<style name="TextAppearance.EditRowDisplay">
<item name="android:textColor">?attr/asThemeTextColor</item>
</style>
<style name="TEA_Dialog" parent="@android:style/Theme.Dialog"> <style name="TEA_Dialog" parent="@android:style/Theme.Dialog">
<item name="android:windowFrame">@null</item> <item name="android:windowFrame">@null</item>
<item name="android:windowTitleStyle">@style/TEA_DialogWindowTitle</item> <item name="android:windowTitleStyle">@style/TEA_DialogWindowTitle</item>
<item name="android:windowBackground">@drawable/dialog_full_holo_dark</item>
<item name="android:windowIsFloating">true</item> <item name="android:windowIsFloating">true</item>
<item name="android:windowAnimationStyle">@android:style/Animation.Dialog</item> <item name="android:windowAnimationStyle">@android:style/Animation.Dialog</item>
<item name="android:windowSoftInputMode">stateUnspecified|adjustResize</item> <item name="android:windowSoftInputMode">stateUnspecified|adjustResize</item>
<item name="asTextColor">#ffffff</item>
</style>
<style name="TEA_Dialog.Light">
<item name="android:windowBackground">@drawable/dialog_full_holo_light</item> <item name="android:windowBackground">@drawable/dialog_full_holo_light</item>
<item name="asTextColor">#000000</item> <item name="asTextColor">#000000</item>
</style> </style>

Loading…
Cancel
Save