1
0
mirror of https://github.com/nerzhul/ownCloud-SMS-App.git synced 2026-08-23 22:32:59 +00:00

Drawer, Toolbar and minor UI optimizations (#145)

* initial add of toolbar and hamburger menu to main activity
* toolbar added to preferences and accounts screens
* fixed original string (name)
* Layout fix for content
* initial add of toolbar and hamburger menu to main activity
* remove unnecessary padding bottom
* fix styling and paint login activity in blue
* toolbar added to preferences and accounts screens
* Layout fix for content
* remove unnecessary padding bottom
* fix styling and paint login activity in blue
* fixes after rebase
* consolidate style since minVersion=16, make drawer to be behind the systembar
* optimize drawer header
* add back navigation to login activity, fix spinner background
* add back navigation
* more launcher icon to mipmap folders
* fix identation
* fix license header
* revert code style deletion, change identation
* proper notification icon
* proper resolution for login logo
* fix large notification icon
* removed unused Eclair switch since support is v16+
* only use small notification icon
* spaces->tabs
* fix toolbar style for Android 4.x
This commit is contained in:
Andy Scherzinger
2017-03-23 20:16:31 +01:00
committed by Loïc Blot
parent 0bc671901e
commit f83eebe4dd
35 changed files with 570 additions and 322 deletions
+3
View File
@@ -2,4 +2,7 @@
<resources>
<color name="oc_primary">#0082C9</color>
<color name="oc_primary_dark">#006AA3</color>
<color name="oc_accent">#007CC2</color>
<color name="oc_login_hint">#7fC0E3</color>
<color name="oc_white">#ffffff</color>
</resources>
+2 -1
View File
@@ -6,7 +6,8 @@
<dimen name="arrow_max_height">22dp</dimen>
<!-- Default screen margins, per the Android Design guidelines. -->
<dimen name="nav_header_vertical_spacing">16dp</dimen>
<dimen name="nav_header_height">120dp</dimen>
<dimen name="standard_half_padding">8dp</dimen>
<dimen name="nav_header_height">140dp</dimen>
<dimen name="fab_margin">16dp</dimen>
</resources>
+31 -7
View File
@@ -27,15 +27,39 @@
<resources>
<style name="AppBaseTheme" parent="Theme.AppCompat.Light.DarkActionBar">
<item name="colorPrimaryDark">@color/oc_primary_dark</item>
<style name="OcSmsTheme" parent="Theme.AppCompat.Light.DarkActionBar">
<item name="colorPrimary">@color/oc_primary</item>
</style>
<!-- Application theme. -->
<style name="AppTheme" parent="AppBaseTheme">
<!-- All customizations that are NOT specific to a particular API-level can go here. -->
<item name="colorPrimaryDark">@color/oc_primary_dark</item>
<item name="colorAccent">@color/oc_accent</item>
</style>
<!-- separate style for Drawer activities needed for v21+ theming -->
<style name="OcSmsTheme.Drawer" parent="OcSmsTheme.NoActionBar">
<item name="colorPrimaryDark">@color/oc_primary_dark</item>
<item name="colorPrimary">@color/oc_primary</item>
<item name="colorAccent">@color/oc_accent</item>
</style>
<style name="OcSmsTheme.NoActionbar" parent="Theme.AppCompat.Light.NoActionBar">
<item name="colorPrimaryDark">@color/oc_primary_dark</item>
<item name="colorPrimary">@color/oc_primary</item>
<item name="colorAccent">@color/oc_accent</item>
<item name="windowActionBar">false</item>
<item name="windowNoTitle">true</item>
<item name="windowActionModeOverlay">true</item>
</style>
<style name="OcSmsTheme.Login" parent="OcSmsTheme">
<item name="android:windowBackground">@color/oc_primary</item>
<item name="colorControlNormal">@color/oc_login_hint</item>
<item name="colorControlActivated">@color/oc_white</item>
<item name="colorControlHighlight">@color/oc_login_hint</item>
<item name="colorAccent">@color/oc_login_hint</item>
<item name="android:textColorHint">@color/oc_login_hint</item>
<item name="android:textColor">@color/oc_white</item>
</style>
<!-- Application theme. -->
<style name="StandardButton">
<item name="android:background">@color/oc_primary</item>
<item name="android:layout_marginTop">15dp</item>
@@ -52,7 +76,7 @@
<item name="android:textAppearance">?android:attr/textAppearanceLarge</item>
</style>
<style name="OcSmsTheme.NoActionBar">
<style name="OcSmsTheme.NoActionBar" parent="Theme.AppCompat.Light.NoActionBar">
<item name="windowActionBar">false</item>
<item name="windowNoTitle">true</item>
</style>