summaryrefslogtreecommitdiff
path: root/app/src/main/res
diff options
context:
space:
mode:
authorMohamed Zenadi <mohamed@zenadi.com>2015-04-20 00:26:21 +0200
committerMohamed Zenadi <mohamed@zenadi.com>2015-05-17 18:45:40 +0200
commit47ffaf99bd98cb4f362f4446c2bd910e222989bf (patch)
tree853c292e5beeb2bdb38715479b04f06e25600654 /app/src/main/res
parent72ad36c6baa82b0b65163cfbb652e7262bbd343a (diff)
add a preference option to select an external directory
Diffstat (limited to 'app/src/main/res')
-rw-r--r--app/src/main/res/color/text_color.xml5
-rw-r--r--app/src/main/res/values/styles.xml2
-rw-r--r--app/src/main/res/xml/preference.xml7
3 files changed, 12 insertions, 2 deletions
diff --git a/app/src/main/res/color/text_color.xml b/app/src/main/res/color/text_color.xml
new file mode 100644
index 00000000..9e70185e
--- /dev/null
+++ b/app/src/main/res/color/text_color.xml
@@ -0,0 +1,5 @@
+<?xml version="1.0" encoding="utf-8"?>
+<selector xmlns:android="http://schemas.android.com/apk/res/android" >
+ <item android:state_enabled="false" android:color="@color/grey_500"/>
+ <item android:color="@color/blue_grey_900"/>
+</selector> \ No newline at end of file
diff --git a/app/src/main/res/values/styles.xml b/app/src/main/res/values/styles.xml
index 556da8f2..a183f724 100644
--- a/app/src/main/res/values/styles.xml
+++ b/app/src/main/res/values/styles.xml
@@ -6,7 +6,7 @@
<item name="colorPrimaryDark">@color/blue_grey_500</item>
<item name="android:windowBackground">@color/blue_grey_50</item>
<item name="android:textColorPrimary">@color/teal_900</item>
- <item name="android:textColor">@color/blue_grey_900</item>
+ <item name="android:textColor">@color/text_color</item>
<item name="actionModeStyle">@style/ActionMode</item>
</style>
diff --git a/app/src/main/res/xml/preference.xml b/app/src/main/res/xml/preference.xml
index 1d81f987..b3bed289 100644
--- a/app/src/main/res/xml/preference.xml
+++ b/app/src/main/res/xml/preference.xml
@@ -3,7 +3,12 @@
<PreferenceCategory android:title="@string/pref_git_title">
<Preference android:title="@string/pref_edit_server_info" android:key="git_server_info"/>
<Preference android:title="@string/pref_ssh_title" android:key="ssh_key" />
- <Preference android:title="@string/pref_git_delete_repo" android:key="git_delete_repo"/>
+ <Preference android:title="@string/pref_git_delete_repo" android:key="git_delete_repo"
+ android:summary="Deletes local repository"/>
+ <CheckBoxPreference android:title="External repository" android:key="git_external"
+ android:summary="Use an external password repository"/>
+ <Preference android:title="Select external repository" android:key="pref_select_external"
+ android:dependency="git_external"/>
</PreferenceCategory>
<PreferenceCategory android:title="@string/pref_crypto_title">