add Dark Theme

This commit is contained in:
tibbi
2016-07-20 18:51:12 +02:00
parent 37871e9bdc
commit c28308b1e3
16 changed files with 123 additions and 11 deletions

View File

@@ -12,6 +12,32 @@
android:layout_height="wrap_content"
android:orientation="vertical">
<RelativeLayout
android:id="@+id/settings_dark_theme_holder"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_marginTop="@dimen/settings_padding"
android:background="?android:attr/selectableItemBackground"
android:padding="@dimen/activity_margin">
<TextView
android:id="@+id/settings_dark_theme_label"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_centerVertical="true"
android:paddingLeft="@dimen/settings_padding"
android:text="@string/dark_theme"/>
<android.support.v7.widget.SwitchCompat
android:id="@+id/settings_dark_theme"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_alignParentRight="true"
android:background="@null"
android:clickable="false"/>
</RelativeLayout>
<RelativeLayout
android:id="@+id/settings_long_tap_holder"
android:layout_width="match_parent"

View File

@@ -15,6 +15,7 @@
<!-- Settings -->
<string name="settings">Impostazioni</string>
<string name="dark_theme">Tema scuro</string>
<string name="long_tap_capture">Tocco prolungato per la cattura</string>
<string name="focus_before_capture">Messa a fuoco prima della cattura</string>
<string name="force_ratio">Forza proporzione 16:9</string>

View File

@@ -15,6 +15,7 @@
<!-- Settings -->
<string name="settings">設定</string>
<string name="dark_theme">ダークテーマ</string>
<string name="long_tap_capture">長押ししてキャプチャする</string>
<string name="focus_before_capture">キャプチャ前に再度焦点を合わせる</string>
<string name="force_ratio">強制的に 16:9 レシオにする</string>

View File

@@ -15,6 +15,7 @@
<!-- Settings -->
<string name="settings">Inställningar</string>
<string name="dark_theme">Mörkt tema</string>
<string name="long_tap_capture">Långtryck för bildtagning</string>
<string name="focus_before_capture">Fokusera om innan bildtagning</string>
<string name="force_ratio">Tvinga 16:9-förhållande</string>

View File

@@ -4,4 +4,8 @@
<item name="android:windowTranslucentNavigation">true</item>
</style>
<style name="FullScreenTheme.Dark" parent="AppTheme.Base.Dark">
<item name="android:windowTranslucentNavigation">true</item>
</style>
</resources>

View File

@@ -4,5 +4,9 @@
<item name="android:windowTranslucentNavigation">true</item>
</style>
<style name="FullScreenTheme.Dark" parent="AppTheme.Base.Dark">
<item name="android:windowTranslucentNavigation">true</item>
</style>
<style name="SpinnerItem" parent="@android:style/Widget.TextView"/>
</resources>

View File

@@ -15,6 +15,7 @@
<!-- Settings -->
<string name="settings">Settings</string>
<string name="dark_theme">Dark theme</string>
<string name="long_tap_capture">Long tap to capture</string>
<string name="focus_before_capture">Refocus before capture</string>
<string name="force_ratio">Force 16:9 ratio</string>

View File

@@ -13,7 +13,19 @@
<item name="android:textSize">@dimen/normal_text_size</item>
</style>
<style name="AppTheme.Base.Dark" parent="Theme.AppCompat">
<item name="colorPrimary">@color/colorPrimary</item>
<item name="colorPrimaryDark">@color/colorPrimaryDark</item>
<item name="colorAccent">@color/colorAccent</item>
<item name="actionBarStyle">@style/AppTheme.ActionBarStyle</item>
<item name="android:spinnerItemStyle">@style/SpinnerItem</item>
<item name="spinnerDropDownItemStyle">@style/SpinnerItem.DropDownItem</item>
<item name="android:spinnerDropDownItemStyle">@style/SpinnerItem.DropDownItem</item>
<item name="android:textSize">@dimen/normal_text_size</item>
</style>
<style name="FullScreenTheme" parent="AppTheme.Base"/>
<style name="FullScreenTheme.Dark" parent="AppTheme.Base.Dark"/>
<style name="AppTheme.ActionBarStyle" parent="@style/Base.Widget.AppCompat.ActionBar">
<item name="background">@color/colorPrimary</item>