From 4a9282ee53c521e3148643ddf97008a906cfeeae Mon Sep 17 00:00:00 2001 From: J-Jamet Date: Tue, 25 Jul 2023 01:07:56 +0200 Subject: [PATCH] fix: Titles --- .../keepass/activities/GroupActivity.kt | 2 -- app/src/main/res/layout/activity_entry.xml | 4 +--- app/src/main/res/layout/activity_group.xml | 24 ++++++++----------- app/src/main/res/values/styles.xml | 6 ++++- 4 files changed, 16 insertions(+), 20 deletions(-) diff --git a/app/src/main/java/com/kunzisoft/keepass/activities/GroupActivity.kt b/app/src/main/java/com/kunzisoft/keepass/activities/GroupActivity.kt index 2bba90ec0..e209ae2f7 100644 --- a/app/src/main/java/com/kunzisoft/keepass/activities/GroupActivity.kt +++ b/app/src/main/java/com/kunzisoft/keepass/activities/GroupActivity.kt @@ -127,7 +127,6 @@ class GroupActivity : DatabaseLockActivity(), private var coordinatorLayout: CoordinatorLayout? = null private var lockView: View? = null private var toolbar: Toolbar? = null - private var databaseNameContainer: ViewGroup? = null private var databaseModifiedView: ImageView? = null private var databaseColorView: ImageView? = null private var databaseNameView: TextView? = null @@ -264,7 +263,6 @@ class GroupActivity : DatabaseLockActivity(), numberChildrenView = findViewById(R.id.group_numbers) addNodeButtonView = findViewById(R.id.add_node_button) toolbar = findViewById(R.id.toolbar) - databaseNameContainer = findViewById(R.id.database_name_container) databaseModifiedView = findViewById(R.id.database_modified) databaseColorView = findViewById(R.id.database_color) databaseNameView = findViewById(R.id.database_name) diff --git a/app/src/main/res/layout/activity_entry.xml b/app/src/main/res/layout/activity_entry.xml index c65634f15..b22e3e1a9 100644 --- a/app/src/main/res/layout/activity_entry.xml +++ b/app/src/main/res/layout/activity_entry.xml @@ -17,10 +17,8 @@ You should have received a copy of the GNU General Public License along with KeePassDX. If not, see . --> - - - - + android:layout_height="wrap_content" + android:layout_marginStart="12dp" + android:layout_marginLeft="12dp" + android:singleLine="true" + tools:text="Database" + style="@style/KeepassDXStyle.Title.OnSurface" /> diff --git a/app/src/main/res/values/styles.xml b/app/src/main/res/values/styles.xml index e1feda0a6..f21612f7e 100644 --- a/app/src/main/res/values/styles.xml +++ b/app/src/main/res/values/styles.xml @@ -98,6 +98,8 @@ @style/KeepassDXStyle.Toolbar @style/KeepassDXStyle.Toolbar.Special @style/KeepassDXStyle.Toolbar.Action + @style/KeepassDXStyle.Title.Large.OnSurface + @style/KeepassDXStyle.Title.OnSurface @style/KeepassDXStyle.TabLayout @@ -190,6 +192,8 @@ @style/KeepassDXStyle.Toolbar @style/KeepassDXStyle.Toolbar.Special @style/KeepassDXStyle.Toolbar.Action + @style/KeepassDXStyle.Title.Large.OnSurface + @style/KeepassDXStyle.Title.OnSurface @style/KeepassDXStyle.TabLayout @@ -398,7 +402,7 @@ @color/on_surface_selector