diff options
author | YuutaW <17158086+Trumeet@users.noreply.github.com> | 2019-02-24 11:59:17 -0800 |
---|---|---|
committer | YuutaW <17158086+Trumeet@users.noreply.github.com> | 2019-02-24 11:59:17 -0800 |
commit | a08328403be84d85c006f801169a3feed0d956a4 (patch) | |
tree | ceebece6443a3e6662a4937b911c58904bb5b1ff /app/src/main/res/values | |
download | WorkMode-a08328403be84d85c006f801169a3feed0d956a4.tar WorkMode-a08328403be84d85c006f801169a3feed0d956a4.tar.gz WorkMode-a08328403be84d85c006f801169a3feed0d956a4.tar.bz2 WorkMode-a08328403be84d85c006f801169a3feed0d956a4.zip |
First Commit
Signed-off-by: YuutaW <17158086+Trumeet@users.noreply.github.com>
Diffstat (limited to 'app/src/main/res/values')
-rw-r--r-- | app/src/main/res/values/attrs.xml | 8 | ||||
-rw-r--r-- | app/src/main/res/values/colors.xml | 8 | ||||
-rw-r--r-- | app/src/main/res/values/dimens.xml | 8 | ||||
-rw-r--r-- | app/src/main/res/values/strings.xml | 27 | ||||
-rw-r--r-- | app/src/main/res/values/styles.xml | 35 |
5 files changed, 86 insertions, 0 deletions
diff --git a/app/src/main/res/values/attrs.xml b/app/src/main/res/values/attrs.xml new file mode 100644 index 0000000..9e90cdd --- /dev/null +++ b/app/src/main/res/values/attrs.xml @@ -0,0 +1,8 @@ +<?xml version="1.0" encoding="utf-8"?> +<resources> + <attr name="switchBarTheme" format="reference" /> + <attr name="switchBarMarginStart" format="dimension" /> + <attr name="switchBarMarginEnd" format="dimension" /> + <attr name="switchBarBackgroundColor" format="color" /> + <attr name="switchBarBackgroundActivatedColor" format="color" /> +</resources>
\ No newline at end of file diff --git a/app/src/main/res/values/colors.xml b/app/src/main/res/values/colors.xml new file mode 100644 index 0000000..5a06de3 --- /dev/null +++ b/app/src/main/res/values/colors.xml @@ -0,0 +1,8 @@ +<?xml version="1.0" encoding="utf-8"?> +<resources> + <color name="colorPrimary">#008577</color> + <color name="colorPrimaryDark">#00574B</color> + <color name="colorAccent">#D81B60</color> + <color name="switch_bar_background">#ff80868B</color> + <color name="preference_fallback_accent_color">#ff80cbc4</color> +</resources> diff --git a/app/src/main/res/values/dimens.xml b/app/src/main/res/values/dimens.xml new file mode 100644 index 0000000..fead519 --- /dev/null +++ b/app/src/main/res/values/dimens.xml @@ -0,0 +1,8 @@ +<?xml version="1.0" encoding="utf-8"?> +<resources> + <dimen name="min_tap_target_size">48dp</dimen> + <dimen name="switchbar_subsettings_margin_start">72dp</dimen> + <dimen name="switchbar_subsettings_margin_end">16dp</dimen> + <dimen name="restricted_icon_size">16dp</dimen> + <dimen name="restricted_icon_margin_end">16dp</dimen> +</resources>
\ No newline at end of file diff --git a/app/src/main/res/values/strings.xml b/app/src/main/res/values/strings.xml new file mode 100644 index 0000000..a536b1e --- /dev/null +++ b/app/src/main/res/values/strings.xml @@ -0,0 +1,27 @@ +<resources> + <string name="app_name">Work Mode</string> + <string name="work">Work</string> + <string name="suspended_message">This app is disabled because you want to enjoy your work.</string> + <!-- Switch On/Off --> + <string name="switch_on_text">On</string> + <string name="switch_off_text">Off</string> + <string name="apps">Apps</string> + <string name="add">Add</string> + <string name="blacklist">Blacklist</string> + <string name="whitelist">Whitelist</string> + <string name="blacklist_welcome">Add apps to be disabled when you are working</string> + <string name="whitelist_welcome">Add apps to be enabled only when you are working</string> + <string name="blacklist_toggle_title">Switch to blacklist</string> + <string name="blacklist_toggle_information">These apps will be disabled and others will be enabled when you are working</string> + <string name="whitelist_toggle_title">Switch to whitelist</string> + <string name="whitelist_toggle_information">These apps will be enabled and others will be disabled when you are working</string> + <string name="error_load_applications">Cannot get applications</string> + <string name="error_apply">Unable to apply settings</string> + <string name="feedback">Feedback</string> + <string name="get_logs">Get logs</string> + <string name="check_update">Check update</string> + <string name="about">About</string> + <string name="feedback_subject">Work Mode feedback</string> + <string name="update_available">%1$s is available</string> + <string name="view">View</string> +</resources> diff --git a/app/src/main/res/values/styles.xml b/app/src/main/res/values/styles.xml new file mode 100644 index 0000000..7af43d0 --- /dev/null +++ b/app/src/main/res/values/styles.xml @@ -0,0 +1,35 @@ +<resources> + + <!-- Base application theme. --> + <style name="AppTheme" parent="Theme.AppCompat.Light.DarkActionBar"> + <!-- Customize your theme here. --> + <item name="colorPrimary">@color/colorPrimary</item> + <item name="colorPrimaryDark">@color/colorPrimaryDark</item> + <item name="colorAccent">@color/colorAccent</item> + <item name="switchBarTheme">@style/ThemeOverlay.SwitchBar.Settings</item> + </style> + + + <style name="TextAppearance.Switch" parent="@style/TextAppearance.AppCompat.Title" /> + + <style name="Widget.SwitchBar.Switch" parent="@style/Widget.AppCompat.CompoundButton.Switch"> + <item name="trackTint">@color/switchbar_switch_track_tint</item> + <item name="android:thumbTint">@color/switchbar_switch_thumb_tint</item> + <item name="android:minHeight">@dimen/min_tap_target_size</item> + </style> + + <style name="TextAppearance.Small" parent="@style/TextAppearance.AppCompat.Small" /> + + <style name="TextAppearance.Small.SwitchBar"> + <item name="android:textColor">?android:attr/textColorPrimary</item> + <item name="android:textStyle">normal</item> + </style> + + <style name="ThemeOverlay.SwitchBar.Settings" parent="@style/ThemeOverlay.AppCompat.ActionBar"> + <item name="android:textColorPrimary">@android:color/white</item> + <item name="switchBarMarginStart">@dimen/switchbar_subsettings_margin_start</item> + <item name="switchBarMarginEnd">@dimen/switchbar_subsettings_margin_end</item> + <item name="switchBarBackgroundColor">@color/switch_bar_background</item> + <item name="switchBarBackgroundActivatedColor">?attr/colorAccent</item> + </style> +</resources> |