Permalink
Browse files

Added theme support for add task view.

  • Loading branch information...
1 parent d6343ef commit d9da9130354b81ff34f295f03ad2c80ab5774a65 @geekonek committed Sep 12, 2011
@@ -0,0 +1,32 @@
+<?xml version="1.0" encoding="utf-8"?>
+
+<!--
+
+Todo.txt Touch/res/drawable/actionbar_background.xml
+
+Copyright (c) 2011 Tomasz Roszko
+
+LICENSE:
+
+This file is part of Todo.txt Touch, an Android app for managing your todo.txt file (http://todotxt.com).
+
+Todo.txt Touch is free software: you can redistribute it and/or modify it under the terms of the GNU General Public
+License as published by the Free Software Foundation, either version 2 of the License, or (at your option) any
+later version.
+
+Todo.txt Touch is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied
+warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more
+details.
+
+You should have received a copy of the GNU General Public License along with Todo.txt Touch. If not, see
+<http://www.gnu.org/licenses/>.
+
+@author Tomasz Roszko <geekonek[at]gmail[dot]com>
+@license http://www.gnu.org/licenses/gpl.html
+@copyright 2011 Tomasz Roszko
+ -->
+
+<shape xmlns:android="http://schemas.android.com/apk/res/android"
+ android:shape="rectangle">
+ <solid android:color="#ff000000"/>
+</shape>
@@ -28,8 +28,5 @@ You should have received a copy of the GNU General Public License along with Tod
<shape xmlns:android="http://schemas.android.com/apk/res/android"
android:shape="rectangle">
- <gradient
- android:startColor="#FF00007E"
- android:endColor="#ff000022"
- android:angle="270" />
+ <solid android:color="#ff000000"/>
</shape>
View
@@ -42,7 +42,7 @@ You should have received a copy of the GNU General Public License along with Tod
android:text="New Task" />
</LinearLayout>
- <LinearLayout style="@style/ActionBar"
+ <LinearLayout style="?actionBar"
android:id="@+id/subtitle_bar"
android:visibility="visible">
<LinearLayout style="@style/ActionBarButtonSet"
@@ -79,9 +79,9 @@ You should have received a copy of the GNU General Public License along with Tod
android:layout_alignParentTop="true" android:layout_width="fill_parent"
android:layout_height="wrap_content"
android:layout_weight="1"
- android:background="@color/white"
+ style="?taskTextEdit"
android:padding="5dip" android:capitalize="sentences" />
-
+
<LinearLayout android:orientation="horizontal"
android:layout_width="fill_parent"
@@ -104,7 +104,7 @@ You should have received a copy of the GNU General Public License along with Tod
<LinearLayout android:orientation="horizontal"
android:layout_width="fill_parent"
android:layout_height="wrap_content"
- android:background="@drawable/actionbar_dark_background"
+ android:background="?actionBarDarkBackground"
android:padding="3dip">
<Button android:id="@+id/addTask"
View
@@ -49,7 +49,7 @@ You should have received a copy of the GNU General Public License along with Tod
android:onClick="onAddTaskClick" />
</LinearLayout>
- <LinearLayout style="@style/ActionBar" android:id="@+id/actionbar"
+ <LinearLayout style="?actionBar" android:id="@+id/actionbar"
android:visibility="gone">
<ImageView android:id="@+id/actionbar_icon"
@@ -59,7 +59,7 @@ You should have received a copy of the GNU General Public License along with Tod
<TextView android:id="@+id/filter_text" android:layout_width="wrap_content"
android:layout_height="wrap_content" android:layout_gravity="center_vertical"
- android:textColor="@color/actionbar_label" />
+ android:textColor="?actionBarLabel" />
<View style="@style/TitleBarSpring" />
<LinearLayout style="@style/ActionBarButtonSet"
View
@@ -31,6 +31,13 @@ You should have received a copy of the GNU General Public License along with Tod
<attr name="titleBarActionStyle" format="reference"/>
<attr name="titleBarSeparator" format="reference"/>
+ <attr name="actionBar" format="reference"/>
+ <attr name="actionBarLabel" format="reference"/>
+ <attr name="actionBarDarkBackground" rformat="reference"/>
+
+ <attr name="taskTextEdit" format="reference"/>
+
+
<attr name="taskId" format="reference"/>
<!-- task list colors -->
View
@@ -41,6 +41,7 @@ You should have received a copy of the GNU General Public License along with Tod
<!-- action bar colors -->
<color name="actionbar_label">#FF666666</color>
+ <color name="actionbar_label_black">#FFAAAAAA</color>
<color name="actionbar_btn_default_light">#FFFFFFFF</color>
<color name="actionbar_btn_default_dark">#FFCCCCCC</color>
<color name="actionbar_btn_default_stroke">#FFBBBBBB</color>
View
@@ -33,8 +33,6 @@ You should have received a copy of the GNU General Public License along with Tod
<!-- Black theme stuff -->
<style name="TitleBarBlack">
- <!-- <item name="android:layout_width">fill_parent</item>
- <item name="android:layout_height">@dimen/title_height</item> -->
<item name="android:orientation">horizontal</item>
<item name="android:background">@drawable/title_background_black</item>
</style>
@@ -53,11 +51,26 @@ You should have received a copy of the GNU General Public License along with Tod
<item name="android:background">@drawable/title_bar_separator_black</item>
</style>
+ <style name="ActionBarBlack">
+ <item name="android:layout_width">fill_parent</item>
+ <item name="android:layout_height">@dimen/actionbar_height</item>
+ <item name="android:orientation">horizontal</item>
+ <item name="android:background">@drawable/actionbar_background_black</item>
+ <item name="android:visibility">gone</item>
+ </style>
+
+ <style name="TaskTextEditBlack">
+ <item name="android:background">@color/black</item>
+ <item name="android:textColor">@color/white</item>
+ </style>
+
<!-- Other stuff :) -->
+ <style name="TaskTextEdit">
+ <item name="android:background">@color/white</item>
+ </style>
+
<style name="TitleBarWhite">
- <!-- <item name="android:layout_width">fill_parent</item>
- <item name="android:layout_height">@dimen/title_height</item> -->
<item name="android:orientation">horizontal</item>
<item name="android:background">@drawable/title_background</item>
</style>
View
@@ -41,11 +41,16 @@ You should have received a copy of the GNU General Public License along with Tod
<item name="android:dividerHeight">1px</item>
<item name="android:cacheColorHint">#FFFFFF</item>
<item name="android:shadowColor">@color/black</item>
- <item name="titleBar">@style/TitleBarWhite</item>
<item name="titleBarActionStyle">@style/TitleBarAction</item>
-
+ <item name="titleBar">@style/TitleBarWhite</item>
<item name="titleBarSeparator">@style/TitleBarSeparator</item>
+ <item name="actionBar">@style/ActionBar</item>
+ <item name="actionBarLabel">@color/actionbar_label</item>
+ <item name="actionBarDarkBackground">@drawable/actionbar_dark_background</item>
+
+ <item name="taskTextEdit">@style/TaskTextEdit</item>
+
<!-- Task list colors -->
<item name="taskTextColor">@color/black</item>
<item name="taskPriorityAColor">@color/green</item>
@@ -70,6 +75,12 @@ You should have received a copy of the GNU General Public License along with Tod
<item name="taskId">@style/TaskIdStyle</item>
<item name="titleBarSeparator">@style/TitleBarSeparatorBlack</item>
+ <item name="actionBar">@style/ActionBarBlack</item>
+ <item name="actionBarLabel">@color/actionbar_label_black</item>
+ <item name="actionBarDarkBackground">@drawable/actionbar_background_black</item>
+
+ <item name="taskTextEdit">@style/TaskTextEditBlack</item>
+
<!-- Task list colors -->
<item name="taskTextColor">@color/white</item>
<item name="taskPriorityAColor">@color/green</item>

0 comments on commit d9da913

Please sign in to comment.