mirror of
https://github.com/Kunzisoft/KeePassDX.git
synced 2026-11-26 20:06:37 -08:00
Solve theme bugs
This commit is contained in:
1 parent
5d6ba8a98a
commit
b4eaa1609e
5 files changed
+105
-121
No files matched your search
@@ -4,19 +4,15 @@
|
||||
android:color="@color/white"
|
||||
tools:targetApi="lollipop">
|
||||
<item>
|
||||
<layer-list>
|
||||
<item android:bottom="2dp" android:left="2dp">
|
||||
<shape>
|
||||
<corners
|
||||
android:radius="2dp" />
|
||||
<padding
|
||||
android:left="14dp"
|
||||
android:right="14dp"
|
||||
android:top="4dp"
|
||||
android:bottom="6dp"/>
|
||||
<solid android:color="@color/colorPrimary"/>
|
||||
</shape>
|
||||
</item>
|
||||
</layer-list>
|
||||
<shape>
|
||||
<corners
|
||||
android:radius="2dp" />
|
||||
<padding
|
||||
android:left="0dp"
|
||||
android:right="0dp"
|
||||
android:top="8dp"
|
||||
android:bottom="8dp"/>
|
||||
<solid android:color="@color/colorPrimary"/>
|
||||
</shape>
|
||||
</item>
|
||||
</ripple>
|
||||
@@ -1,14 +1,14 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<layer-list xmlns:android="http://schemas.android.com/apk/res/android">
|
||||
<item android:bottom="2dp" android:left="2dp">
|
||||
<item>
|
||||
<shape>
|
||||
<corners
|
||||
android:radius="2dp" />
|
||||
<padding
|
||||
android:left="14dp"
|
||||
android:right="14dp"
|
||||
android:top="4dp"
|
||||
android:bottom="6dp"/>
|
||||
android:left="0dp"
|
||||
android:right="0dp"
|
||||
android:top="8dp"
|
||||
android:bottom="8dp"/>
|
||||
<solid android:color="@color/colorPrimary"/>
|
||||
</shape>
|
||||
</item>
|
||||
|
||||
@@ -17,72 +17,64 @@
|
||||
You should have received a copy of the GNU General Public License
|
||||
along with KeePass DX. If not, see <http://www.gnu.org/licenses/>.
|
||||
-->
|
||||
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
|
||||
xmlns:tools="http://schemas.android.com/tools"
|
||||
android:padding="@dimen/default_margin"
|
||||
android:orientation="vertical"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content">
|
||||
<TextView android:id="@+id/about_title"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_marginBottom="8dp"
|
||||
android:text="@string/AboutText"/>
|
||||
<ImageView android:id="@+id/divider1"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:scaleType="fitXY"
|
||||
tools:ignore="ContentDescription"
|
||||
android:src="@android:drawable/divider_horizontal_dark"/>
|
||||
<TextView android:id="@+id/version_title"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:text="@string/version_label"
|
||||
style="@style/KeepassDXStyle.TextAppearance.Title"/>
|
||||
<TextView android:id="@+id/version"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_gravity="end"/>
|
||||
<ImageView android:id="@+id/divider2"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:scaleType="fitXY"
|
||||
tools:ignore="ContentDescription"
|
||||
android:src="@android:drawable/divider_horizontal_dark"/>
|
||||
<TextView android:id="@+id/homepage"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:text="@string/about_homepage"
|
||||
style="@style/KeepassDXStyle.TextAppearance.Title"/>
|
||||
<TextView
|
||||
android:id="@+id/textView"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:autoLink="web"
|
||||
android:layout_gravity="end"
|
||||
android:gravity="end"
|
||||
android:text="@string/homepage_short" />
|
||||
<TextView android:id="@+id/feedback"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:text="@string/about_feedback"
|
||||
style="@style/KeepassDXStyle.TextAppearance.Title"/>
|
||||
<TextView android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:text="@string/issues"
|
||||
android:layout_gravity="end"
|
||||
android:gravity="end"
|
||||
android:autoLink="web"/>
|
||||
<ImageView android:id="@+id/divider3"
|
||||
android:layout_marginTop="20dp"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:scaleType="fitXY"
|
||||
tools:ignore="ContentDescription"
|
||||
android:src="@android:drawable/divider_horizontal_dark"/>
|
||||
<TextView android:id="@+id/disclaimer"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:text="@string/disclaimer_formal"
|
||||
style="@style/KeepassDXStyle.TextAppearance.TinyText"/>
|
||||
</LinearLayout>
|
||||
<ScrollView xmlns:android="http://schemas.android.com/apk/res/android"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="match_parent" >
|
||||
|
||||
<LinearLayout
|
||||
android:padding="20dp"
|
||||
android:orientation="vertical"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content">
|
||||
|
||||
<TextView android:id="@+id/about_title"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_marginBottom="8dp"
|
||||
android:gravity="center"
|
||||
android:text="@string/AboutText"/>
|
||||
|
||||
<TextView android:id="@+id/version_title"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:text="@string/version_label"
|
||||
style="@style/KeepassDXStyle.TextAppearance.SmallTitle"/>
|
||||
<TextView android:id="@+id/version"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_gravity="end"/>
|
||||
|
||||
<TextView android:id="@+id/homepage"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:text="@string/about_homepage"
|
||||
style="@style/KeepassDXStyle.TextAppearance.SmallTitle"/>
|
||||
<TextView
|
||||
android:id="@+id/textView"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:autoLink="web"
|
||||
android:layout_gravity="end"
|
||||
android:gravity="end"
|
||||
android:text="@string/homepage_short" />
|
||||
<TextView android:id="@+id/feedback"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:text="@string/about_feedback"
|
||||
style="@style/KeepassDXStyle.TextAppearance.SmallTitle"/>
|
||||
<TextView android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:text="@string/issues"
|
||||
android:layout_gravity="end"
|
||||
android:gravity="end"
|
||||
android:autoLink="web"/>
|
||||
|
||||
<TextView android:id="@+id/disclaimer"
|
||||
android:layout_marginTop="20dp"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:gravity="center"
|
||||
android:text="@string/disclaimer_formal"
|
||||
style="@style/KeepassDXStyle.TextAppearance.TinyText"/>
|
||||
</LinearLayout>
|
||||
</ScrollView>
|
||||
@@ -6,33 +6,20 @@
|
||||
</style>
|
||||
|
||||
<!-- Button Style -->
|
||||
<style name="KeepassDXStyle.Button" parent="Base.Widget.AppCompat.Button">
|
||||
<item name="android:textColor">?attr/textColorInverse</item>
|
||||
<item name="android:background">@drawable/button_background</item>
|
||||
<style name="KeepassDXStyle.v21.Button" parent="Base.TextAppearance.AppCompat.Button" >
|
||||
<item name="android:elevation">4dp</item>
|
||||
</style>
|
||||
<style name="KeepassDXStyle.ImageButton" parent="Base.Widget.AppCompat.ImageButton">
|
||||
<item name="android:background">@drawable/image_button_background</item>
|
||||
<item name="android:elevation">4dp</item>
|
||||
</style>
|
||||
<style name="KeepassDXStyle.ButtonText" parent="Base.Widget.AppCompat.Button">
|
||||
<item name="android:textColor">?attr/textColorInverse</item>
|
||||
<item name="android:background">@drawable/button_background</item>
|
||||
<style name="KeepassDXStyle.v21.ImageButton" parent="Base.Widget.AppCompat.ImageButton">
|
||||
<item name="android:elevation">4dp</item>
|
||||
</style>
|
||||
|
||||
<!-- FAB -->
|
||||
<style name="KeepassDXStyle.Fab" parent="Theme.AppCompat">
|
||||
<item name="android:background">@drawable/fab_background</item>
|
||||
<item name="android:layout_width">56dp</item>
|
||||
<item name="android:layout_margin">24dp</item>
|
||||
<style name="KeepassDXStyle.v21.Fab" parent="Theme.AppCompat">
|
||||
<item name="android:elevation">4dp</item>
|
||||
</style>
|
||||
|
||||
<!-- Menu FAB -->
|
||||
<style name="KeepassDXStyle.FabMenu" parent="KeepassDXStyle.TextAppearance.DefaultTextOnPrimary">
|
||||
<item name="android:textSize">15sp</item>
|
||||
<item name="android:background">@drawable/button_small_background</item>
|
||||
<style name="KeepassDXStyle.v21.FabMenu" parent="KeepassDXStyle.TextAppearance.DefaultTextOnPrimary">
|
||||
<item name="android:elevation">4dp</item>
|
||||
</style>
|
||||
</resources>
|
||||
@@ -108,8 +108,11 @@
|
||||
|
||||
<!-- Dialog -->
|
||||
<style name="KeepassDXStyle.Night.Dialog" parent="Theme.AppCompat.Dialog.Alert">
|
||||
<item name="android:textColorPrimary">@color/colorTextInverse</item>
|
||||
<item name="colorAccent">@color/colorAccent</item>
|
||||
<item name="android:textColorPrimary">@color/colorPrimary</item>
|
||||
<item name="android:background">@color/background_night</item>
|
||||
<item name="buttonBarNegativeButtonStyle">@style/KeepassDXStyle.Dialog.NegativeButton</item>
|
||||
<item name="buttonBarPositiveButtonStyle">@style/KeepassDXStyle.Dialog.PositiveButton</item>
|
||||
</style>
|
||||
<style name="KeepassDXStyle.Dialog.NegativeButton" parent="Widget.AppCompat.Button.ButtonBar.AlertDialog">
|
||||
<item name="android:textColor">?attr/colorAccent</item>
|
||||
@@ -118,19 +121,6 @@
|
||||
<item name="android:textColor">?android:attr/textColorPrimary</item>
|
||||
</style>
|
||||
|
||||
<!-- Button Style -->
|
||||
<style name="KeepassDXStyle.Button" parent="Base.Widget.AppCompat.Button">
|
||||
<item name="android:textColor">?attr/textColorInverse</item>
|
||||
<item name="android:background">@drawable/button_background</item>
|
||||
</style>
|
||||
<style name="KeepassDXStyle.ImageButton" parent="Base.Widget.AppCompat.ImageButton">
|
||||
<item name="android:background">@drawable/image_button_background</item>
|
||||
</style>
|
||||
<style name="KeepassDXStyle.ButtonText" parent="Base.Widget.AppCompat.Button">
|
||||
<item name="android:textColor">?attr/textColorInverse</item>
|
||||
<item name="android:background">@drawable/button_background</item>
|
||||
</style>
|
||||
|
||||
<!-- CheckBox -->
|
||||
<style name="KeepassDXStyle.CheckBox" parent="Widget.AppCompat.CompoundButton.CheckBox">
|
||||
<item name="android:textColor">?android:attr/textColor</item>
|
||||
@@ -157,6 +147,10 @@
|
||||
<item name="android:textColor">?android:attr/textColorPrimary</item>
|
||||
<item name="android:textSize">16sp</item>
|
||||
</style>
|
||||
<style name="KeepassDXStyle.TextAppearance.SmallTitle" parent="KeepassDXStyle.TextAppearance">
|
||||
<item name="android:textColor">?android:attr/textColorPrimary</item>
|
||||
<item name="android:textSize">12sp</item>
|
||||
</style>
|
||||
<style name="KeepassDXStyle.TextAppearance.SecondaryText" parent="KeepassDXStyle.TextAppearance">
|
||||
<item name="android:textSize">14sp</item>
|
||||
</style>
|
||||
@@ -167,15 +161,30 @@
|
||||
<item name="android:textColor">?attr/colorAccent</item>
|
||||
</style>
|
||||
|
||||
<!-- Button Style -->
|
||||
<style name="KeepassDXStyle.v21.Button" parent="Base.TextAppearance.AppCompat.Button" />
|
||||
<style name="KeepassDXStyle.Button" parent="KeepassDXStyle.v21.Button">
|
||||
<item name="android:textColor">?attr/textColorInverse</item>
|
||||
<item name="android:background">@drawable/button_background</item>
|
||||
<item name="android:gravity">center</item>
|
||||
</style>
|
||||
<style name="KeepassDXStyle.v21.ImageButton" parent="Base.Widget.AppCompat.ImageButton" />
|
||||
<style name="KeepassDXStyle.ImageButton" parent="KeepassDXStyle.v21.ImageButton">
|
||||
<item name="android:background">@drawable/image_button_background</item>
|
||||
<item name="android:gravity">center</item>
|
||||
</style>
|
||||
|
||||
<!-- FAB -->
|
||||
<style name="KeepassDXStyle.Fab" parent="Theme.AppCompat">
|
||||
<style name="KeepassDXStyle.v21.Fab" parent="Theme.AppCompat" />
|
||||
<style name="KeepassDXStyle.Fab" parent="KeepassDXStyle.v21.Fab">
|
||||
<item name="android:background">@drawable/fab_background</item>
|
||||
<item name="android:layout_width">56dp</item>
|
||||
<item name="android:layout_margin">24dp</item>
|
||||
</style>
|
||||
|
||||
<!-- Menu FAB -->
|
||||
<style name="KeepassDXStyle.FabMenu" parent="KeepassDXStyle.TextAppearance.DefaultTextOnPrimary">
|
||||
<style name="KeepassDXStyle.v21.FabMenu" parent="KeepassDXStyle.TextAppearance.DefaultTextOnPrimary" />
|
||||
<style name="KeepassDXStyle.FabMenu" parent="KeepassDXStyle.v21.FabMenu">
|
||||
<item name="android:textSize">15sp</item>
|
||||
<item name="android:background">@drawable/button_small_background</item>
|
||||
</style>
|
||||
|
||||
Reference in new issue
Block a user