aboutsummaryrefslogtreecommitdiff
path: root/res
diff options
context:
space:
mode:
authorScott Jackson <daneren2005@gmail.com>2014-06-07 13:12:45 -0700
committerScott Jackson <daneren2005@gmail.com>2014-06-07 13:12:45 -0700
commit14893daf30e01cd1d99bbcbb1d222450be853126 (patch)
treeb1b2f32b29148a9cd3cc90113a46a8ff9e25f240 /res
parent76f08212f4eb110f80661c6929c9af68a2c8a422 (diff)
downloaddsub-14893daf30e01cd1d99bbcbb1d222450be853126.tar.gz
dsub-14893daf30e01cd1d99bbcbb1d222450be853126.tar.bz2
dsub-14893daf30e01cd1d99bbcbb1d222450be853126.zip
#171 Add basic admin tab
Diffstat (limited to 'res')
-rw-r--r--res/menu/admin.xml12
-rw-r--r--res/menu/empty.xml3
-rw-r--r--res/values/arrays.xml4
-rw-r--r--res/values/attrs.xml1
-rw-r--r--res/values/strings.xml4
-rw-r--r--res/values/themes.xml3
-rw-r--r--res/xml/settings.xml6
7 files changed, 33 insertions, 0 deletions
diff --git a/res/menu/admin.xml b/res/menu/admin.xml
new file mode 100644
index 00000000..f16e89f7
--- /dev/null
+++ b/res/menu/admin.xml
@@ -0,0 +1,12 @@
+<menu xmlns:android="http://schemas.android.com/apk/res/android"
+ xmlns:compat="http://schemas.android.com/apk/res-auto">
+ <item
+ android:id="@+id/menu_add_user"
+ android:title="@string/menu.add_user"
+ android:icon="?attr/add_person"
+ compat:showAsAction="always|withText"/>
+
+ <item
+ android:id="@+id/menu_exit"
+ android:title="@string/menu.exit"/>
+</menu> \ No newline at end of file
diff --git a/res/menu/empty.xml b/res/menu/empty.xml
index cf7b82de..7abe954b 100644
--- a/res/menu/empty.xml
+++ b/res/menu/empty.xml
@@ -2,4 +2,7 @@
<menu xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:compat="http://schemas.android.com/apk/res-auto">
+ <item
+ android:id="@+id/menu_exit"
+ android:title="@string/menu.exit"/>
</menu>
diff --git a/res/values/arrays.xml b/res/values/arrays.xml
index e8eee980..aca7b9ee 100644
--- a/res/values/arrays.xml
+++ b/res/values/arrays.xml
@@ -8,6 +8,7 @@
<item>@string/button_bar.bookmarks</item>
<item>@string/button_bar.shares</item>
<item>@string/button_bar.chat</item>
+ <item>@string/button_bar.admin</item>
<item>@string/button_bar.downloading</item>
<item>@string/menu.settings</item>
</string-array>
@@ -20,6 +21,7 @@
<item>Bookmark</item>
<item>Share</item>
<item>Chat</item>
+ <item>Admin</item>
<item>Download</item>
<item>Settings</item>
</string-array>
@@ -32,6 +34,7 @@
<item>@drawable/ic_menu_bookmark_light</item>
<item>@drawable/ic_menu_share_light</item>
<item>@drawable/ic_menu_chat_light</item>
+ <item>@drawable/ic_menu_admin_light</item>
<item>@drawable/ic_menu_download_light</item>
<item>@drawable/ic_menu_settings_light</item>
</array>
@@ -44,6 +47,7 @@
<item>@drawable/ic_menu_bookmark_dark</item>
<item>@drawable/ic_menu_share_dark</item>
<item>@drawable/ic_menu_chat_dark</item>
+ <item>@drawable/ic_menu_admin_dark</item>
<item>@drawable/ic_menu_download_dark</item>
<item>@drawable/ic_menu_settings_dark</item>
</array>
diff --git a/res/values/attrs.xml b/res/values/attrs.xml
index b557035c..1e8b365f 100644
--- a/res/values/attrs.xml
+++ b/res/values/attrs.xml
@@ -20,5 +20,6 @@
<attr name="downloading" format="reference"/>
<attr name="bookmark" format="reference"/>
<attr name="share" format="reference"/>
+ <attr name="add_person" format="reference"/>
<attr name="drawerItemsIcons" format="reference"/>
</resources>
diff --git a/res/values/strings.xml b/res/values/strings.xml
index 3bc04eb6..0e385186 100644
--- a/res/values/strings.xml
+++ b/res/values/strings.xml
@@ -35,6 +35,7 @@
<string name="button_bar.bookmarks">Bookmarks</string>
<string name="button_bar.shares">Shares</string>
<string name="button_bar.chat">Chat</string>
+ <string name="button_bar.admin">Admin</string>
<string name="button_bar.downloading">Downloading</string>
<string name="main.welcome_title">Welcome!</string>
@@ -99,6 +100,7 @@
<string name="menu.delete_cache">Delete Cache</string>
<string name="menu.cast">Cast To Device</string>
<string name="menu.faq">FAQ</string>
+ <string name="menu.add_user">Add User</string>
<string name="playlist.label">Playlists</string>
<string name="playlist.update_info">Update Information</string>
@@ -416,6 +418,8 @@
<string name="settings.play_now_after_summary">Play Now context menu for a song plays everything after selected item (like the Subsonic web GUI)</string>
<string name="settings.large_album_art">Large Album Art</string>
<string name="settings.large_album_art_summary">Display albums with large album art instead of in a list</string>
+ <string name="settings.admin_enabled">Admin Enabled</string>
+ <string name="settings.admin_enabled_summary">Whether or not to display the admin listing in the pull out drawer</string>
<string name="shuffle.title">Shuffle By</string>
<string name="shuffle.startYear">Start Year:</string>
diff --git a/res/values/themes.xml b/res/values/themes.xml
index 8a2bff2c..8d565802 100644
--- a/res/values/themes.xml
+++ b/res/values/themes.xml
@@ -23,6 +23,7 @@
<item name="downloading">@drawable/downloading_light</item>
<item name="bookmark">@drawable/ic_menu_bookmark_light</item>
<item name="share">@drawable/ic_menu_share_light</item>
+ <item name="add_person">@drawable/ic_menu_add_person_light</item>
<item name="drawerItemsIcons">@array/drawerItemIconsLight</item>
<item name="android:textViewStyle">@style/DSub.TextViewStyle</item>
<item name="android:buttonStyle">@style/DSub.ButtonStyle.Light</item>
@@ -51,6 +52,7 @@
<item name="downloading">@drawable/downloading_dark</item>
<item name="bookmark">@drawable/ic_menu_bookmark_dark</item>
<item name="share">@drawable/ic_menu_share_dark</item>
+ <item name="add_person">@drawable/ic_menu_add_person_dark</item>
<item name="drawerItemsIcons">@array/drawerItemIconsDark</item>
<item name="android:textViewStyle">@style/DSub.TextViewStyle</item>
<item name="android:buttonStyle">@style/DSub.ButtonStyle.Dark</item>
@@ -82,6 +84,7 @@
<item name="downloading">@drawable/downloading_dark</item>
<item name="bookmark">@drawable/ic_menu_bookmark_dark</item>
<item name="share">@drawable/ic_menu_share_dark</item>
+ <item name="add_person">@drawable/ic_menu_add_person_dark</item>
<item name="drawerItemsIcons">@array/drawerItemIconsDark</item>
<item name="android:textViewStyle">@style/DSub.TextViewStyle</item>
<item name="android:buttonStyle">@style/DSub.ButtonStyle.Dark</item>
diff --git a/res/xml/settings.xml b/res/xml/settings.xml
index 9f1b5b67..cf3868f5 100644
--- a/res/xml/settings.xml
+++ b/res/xml/settings.xml
@@ -139,6 +139,12 @@
android:summary="@string/settings.shares_enabled_summary"
android:key="sharedEnabled"
android:defaultValue="true"/>
+
+ <CheckBoxPreference
+ android:title="@string/settings.admin_enabled"
+ android:summary="@string/settings.admin_enabled_summary"
+ android:key="adminEnabled"
+ android:defaultValue="true"/>
</PreferenceCategory>
<PreferenceCategory