change primary color to reflect mosad.xyz design guidelines
* minor style fix: nav_header_main set background to black and text color to white
This commit is contained in:
parent
bdfeb46faf
commit
3e2ef0521e
|
@ -37,7 +37,7 @@ class PreferencesController {
|
||||||
var coursesCacheTime: Long = 0
|
var coursesCacheTime: Long = 0
|
||||||
var mensaCacheTime: Long = 0
|
var mensaCacheTime: Long = 0
|
||||||
var timetableCacheTime: Long = 0
|
var timetableCacheTime: Long = 0
|
||||||
var cColorPrimary: Int = Color.BLACK
|
var cColorPrimary: Int = Color.parseColor("#009688")
|
||||||
var cColorAccent: Int = Color.parseColor("#3F51B5")
|
var cColorAccent: Int = Color.parseColor("#3F51B5")
|
||||||
var cCourse = Course("https://www.hs-offenburg.de/index.php?id=6627&class=class&iddV=DA64F6FE-9DDB-429E-A677-05D0D40CB636&week=0", "AI3")
|
var cCourse = Course("https://www.hs-offenburg.de/index.php?id=6627&class=class&iddV=DA64F6FE-9DDB-429E-A677-05D0D40CB636&week=0", "AI3")
|
||||||
var cShowBuffet = true
|
var cShowBuffet = true
|
||||||
|
@ -168,10 +168,10 @@ class PreferencesController {
|
||||||
// load saved colors
|
// load saved colors
|
||||||
cColorPrimary = sharedPref.getInt(context.getString(
|
cColorPrimary = sharedPref.getInt(context.getString(
|
||||||
R.string.save_key_colorPrimary
|
R.string.save_key_colorPrimary
|
||||||
), Color.BLACK)
|
), cColorPrimary)
|
||||||
cColorAccent = sharedPref.getInt(context.getString(
|
cColorAccent = sharedPref.getInt(context.getString(
|
||||||
R.string.save_key_colorAccent
|
R.string.save_key_colorAccent
|
||||||
), Color.parseColor("#3F51B5"))
|
), cColorAccent)
|
||||||
|
|
||||||
// load showBuffet
|
// load showBuffet
|
||||||
cShowBuffet = sharedPref.getBoolean(context.getString(
|
cShowBuffet = sharedPref.getBoolean(context.getString(
|
||||||
|
|
|
@ -1,7 +1,7 @@
|
||||||
<?xml version="1.0" encoding="utf-8"?>
|
<?xml version="1.0" encoding="utf-8"?>
|
||||||
<layer-list xmlns:android="http://schemas.android.com/apk/res/android">
|
<layer-list xmlns:android="http://schemas.android.com/apk/res/android">
|
||||||
|
|
||||||
<item android:drawable="@color/colorPrimary"/>
|
<item android:drawable="@android:color/black"/>
|
||||||
|
|
||||||
<item android:gravity="center" android:width="144dp" android:height="144dp">
|
<item android:gravity="center" android:width="144dp" android:height="144dp">
|
||||||
<bitmap
|
<bitmap
|
||||||
|
|
|
@ -1,9 +0,0 @@
|
||||||
<shape xmlns:android="http://schemas.android.com/apk/res/android"
|
|
||||||
android:shape="rectangle">
|
|
||||||
<gradient
|
|
||||||
android:angle="135"
|
|
||||||
android:centerColor="?colorPrimary"
|
|
||||||
android:endColor="?colorPrimaryDark"
|
|
||||||
android:startColor="?colorPrimary"
|
|
||||||
android:type="linear"/>
|
|
||||||
</shape>
|
|
|
@ -1,38 +1,40 @@
|
||||||
<?xml version="1.0" encoding="utf-8"?>
|
<?xml version="1.0" encoding="utf-8"?>
|
||||||
<LinearLayout
|
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
|
||||||
xmlns:android="http://schemas.android.com/apk/res/android"
|
|
||||||
xmlns:app="http://schemas.android.com/apk/res-auto"
|
xmlns:app="http://schemas.android.com/apk/res-auto"
|
||||||
|
android:id="@+id/nav_header_main"
|
||||||
android:layout_width="match_parent"
|
android:layout_width="match_parent"
|
||||||
android:layout_height="@dimen/nav_header_height"
|
android:layout_height="@dimen/nav_header_height"
|
||||||
android:background="@color/colorPrimary"
|
android:background="@android:color/black"
|
||||||
android:paddingBottom="@dimen/activity_vertical_margin"
|
|
||||||
android:paddingLeft="@dimen/activity_horizontal_margin"
|
|
||||||
android:paddingRight="@dimen/activity_horizontal_margin"
|
|
||||||
android:paddingTop="@dimen/activity_vertical_margin"
|
|
||||||
android:theme="@style/ThemeOverlay.AppCompat.Dark"
|
|
||||||
android:orientation="vertical"
|
|
||||||
android:gravity="bottom"
|
android:gravity="bottom"
|
||||||
android:id="@+id/nav_header_main">
|
android:orientation="vertical"
|
||||||
|
android:paddingLeft="@dimen/activity_horizontal_margin"
|
||||||
|
android:paddingTop="@dimen/activity_vertical_margin"
|
||||||
|
android:paddingRight="@dimen/activity_horizontal_margin"
|
||||||
|
android:paddingBottom="@dimen/activity_vertical_margin"
|
||||||
|
android:theme="@style/ThemeOverlay.AppCompat.Dark">
|
||||||
|
|
||||||
<ImageView
|
<ImageView
|
||||||
|
android:id="@+id/imageView"
|
||||||
android:layout_width="wrap_content"
|
android:layout_width="wrap_content"
|
||||||
android:layout_height="wrap_content"
|
android:layout_height="wrap_content"
|
||||||
android:paddingTop="@dimen/nav_header_vertical_spacing"
|
|
||||||
app:srcCompat="@mipmap/ic_laogai_icon"
|
|
||||||
android:contentDescription="@string/app_name"
|
android:contentDescription="@string/app_name"
|
||||||
android:id="@+id/imageView"/>
|
android:paddingTop="@dimen/nav_header_vertical_spacing"
|
||||||
|
app:srcCompat="@mipmap/ic_laogai_icon" />
|
||||||
|
|
||||||
<TextView
|
<TextView
|
||||||
|
android:id="@+id/txtView_nav_header_title"
|
||||||
android:layout_width="match_parent"
|
android:layout_width="match_parent"
|
||||||
android:layout_height="wrap_content"
|
android:layout_height="wrap_content"
|
||||||
android:paddingTop="@dimen/nav_header_vertical_spacing"
|
android:paddingTop="@dimen/nav_header_vertical_spacing"
|
||||||
android:text="@string/nav_header_title"
|
android:text="@string/nav_header_title"
|
||||||
android:textAppearance="@style/TextAppearance.AppCompat.Body1" android:id="@+id/txtView_nav_header_title"/>
|
android:textAppearance="@style/TextAppearance.AppCompat.Body1"
|
||||||
|
android:textColor="#FFFFFF" />
|
||||||
|
|
||||||
<TextView
|
<TextView
|
||||||
|
android:id="@+id/textView"
|
||||||
android:layout_width="wrap_content"
|
android:layout_width="wrap_content"
|
||||||
android:layout_height="wrap_content"
|
android:layout_height="wrap_content"
|
||||||
android:text="@string/nav_header_subtitle"
|
android:text="@string/nav_header_subtitle"
|
||||||
android:id="@+id/textView"/>
|
android:textColor="#ffffff" />
|
||||||
|
|
||||||
</LinearLayout>
|
</LinearLayout>
|
||||||
|
|
|
@ -51,7 +51,7 @@
|
||||||
<string name="themeDark">Dunkel</string>
|
<string name="themeDark">Dunkel</string>
|
||||||
<string name="themeBlack">Schwarz</string>
|
<string name="themeBlack">Schwarz</string>
|
||||||
<string name="primary_color">Primärfarbe</string>
|
<string name="primary_color">Primärfarbe</string>
|
||||||
<string name="primary_color_desc">Zum Ändern tippen, Standard ist Schwarz.</string>
|
<string name="primary_color_desc">Zum Ändern tippen, Standard ist Blaugrün.</string>
|
||||||
<string name="accent_color">Akzentfarbe</string>
|
<string name="accent_color">Akzentfarbe</string>
|
||||||
<string name="accent_color_desc">Zum Ändern tippen, Standard ist Indigo.</string>
|
<string name="accent_color_desc">Zum Ändern tippen, Standard ist Indigo.</string>
|
||||||
<string name="show_buffet">Buffet immer anzeigen</string>
|
<string name="show_buffet">Buffet immer anzeigen</string>
|
||||||
|
|
|
@ -1,7 +1,7 @@
|
||||||
<?xml version="1.0" encoding="utf-8"?>
|
<?xml version="1.0" encoding="utf-8"?>
|
||||||
<resources>
|
<resources>
|
||||||
<color name="colorPrimary">#000000</color>
|
<color name="colorPrimary">#009688</color>
|
||||||
<color name="colorPrimaryDark">#000000</color>
|
<color name="colorPrimaryDark">#009688</color>
|
||||||
<color name="colorAccent">#3f51b5</color>
|
<color name="colorAccent">#3f51b5</color>
|
||||||
<color name="ic_launcher_background">#ffffff</color>
|
<color name="ic_launcher_background">#ffffff</color>
|
||||||
|
|
||||||
|
@ -9,10 +9,10 @@
|
||||||
<color name="themePrimaryDark">#000000</color>
|
<color name="themePrimaryDark">#000000</color>
|
||||||
<color name="themeSecondaryDark">#303030</color>
|
<color name="themeSecondaryDark">#303030</color>
|
||||||
<color name="textPrimaryDark">#ffffff</color>
|
<color name="textPrimaryDark">#ffffff</color>
|
||||||
<color name="textSecondaryDark">#e0e0e0</color>
|
<color name="textSecondaryDark">#c0c0c0</color>
|
||||||
<color name="dividerDark">#232323</color>
|
<color name="dividerDark">#232323</color>
|
||||||
|
|
||||||
<color name="themePrimaryLight">#ffffff</color>
|
<color name="themePrimaryLight">#f5f5f5</color>
|
||||||
<color name="themeSecondaryLight">#ffffff</color>
|
<color name="themeSecondaryLight">#ffffff</color>
|
||||||
<color name="textPrimaryLight">#000000</color>
|
<color name="textPrimaryLight">#000000</color>
|
||||||
<color name="textSecondaryLight">#818181</color>
|
<color name="textSecondaryLight">#818181</color>
|
||||||
|
|
|
@ -56,7 +56,7 @@
|
||||||
<string name="themeDark">Dark</string>
|
<string name="themeDark">Dark</string>
|
||||||
<string name="themeBlack">Black</string>
|
<string name="themeBlack">Black</string>
|
||||||
<string name="primary_color">Primary color</string>
|
<string name="primary_color">Primary color</string>
|
||||||
<string name="primary_color_desc">Tap to change, default is black.</string>
|
<string name="primary_color_desc">Tap to change, default is teal blue.</string>
|
||||||
<string name="accent_color">Accent color</string>
|
<string name="accent_color">Accent color</string>
|
||||||
<string name="accent_color_desc">Tap to change, default is indigo.</string>
|
<string name="accent_color_desc">Tap to change, default is indigo.</string>
|
||||||
<string name="show_buffet">Always show buffet</string>
|
<string name="show_buffet">Always show buffet</string>
|
||||||
|
|
Loading…
Reference in New Issue