-
Notifications
You must be signed in to change notification settings - Fork 730
Refresh visual theme foundation #606
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: main
Are you sure you want to change the base?
Changes from all commits
48d758b
52df934
1dc9487
5be9ded
dbf3680
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,33 @@ | ||
| <?xml version="1.0" encoding="utf-8"?> | ||
| <!-- | ||
| ~ WiFiAnalyzer | ||
| ~ Copyright (C) 2015 - 2026 VREM Software Development <VREMSoftwareDevelopment@gmail.com> | ||
| ~ | ||
| ~ This program is free software: you can redistribute it and/or modify | ||
| ~ it under the terms of the GNU General Public License as published by | ||
| ~ the Free Software Foundation, either version 3 of the License, or | ||
| ~ (at your option) any later version. | ||
| ~ | ||
| ~ This program is distributed in the hope that it will be useful, | ||
| ~ but WITHOUT ANY WARRANTY; without even the implied warranty of | ||
| ~ MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | ||
| ~ GNU General Public License for more details. | ||
| ~ | ||
| ~ You should have received a copy of the GNU General Public License | ||
| ~ along with this program. If not, see <http://www.gnu.org/licenses/> | ||
| --> | ||
| <selector xmlns:android="http://schemas.android.com/apk/res/android"> | ||
| <item android:state_checked="true"> | ||
| <inset | ||
| android:insetLeft="12dp" | ||
| android:insetTop="4dp" | ||
| android:insetRight="12dp" | ||
| android:insetBottom="4dp"> | ||
| <shape android:shape="rectangle"> | ||
| <corners android:radius="16dp" /> | ||
| <solid android:color="@color/brand_primary_container" /> | ||
| </shape> | ||
| </inset> | ||
| </item> | ||
| <item android:drawable="@android:color/transparent" /> | ||
| </selector> | ||
| Original file line number | Diff line number | Diff line change | ||||
|---|---|---|---|---|---|---|
|
|
@@ -23,6 +23,7 @@ | |||||
| android:id="@+id/drawer_layout" | ||||||
| android:layout_width="match_parent" | ||||||
| android:layout_height="match_parent" | ||||||
| android:background="@color/background" | ||||||
|
||||||
| android:background="@color/background" | |
| android:background="?attr/colorSurface" |
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -20,7 +20,8 @@ | |
| <LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" | ||
| xmlns:app="http://schemas.android.com/apk/res-auto" | ||
| android:layout_width="match_parent" | ||
| android:layout_height="wrap_content" | ||
| android:layout_height="match_parent" | ||
| android:background="@color/background" | ||
| android:orientation="vertical"> | ||
|
Comment on lines
22
to
25
|
||
|
|
||
| <include layout="@layout/main_toolbar" /> | ||
|
|
@@ -31,16 +32,17 @@ | |
| android:layout_width="match_parent" | ||
| android:layout_height="0dp" | ||
| android:layout_weight="1" | ||
| android:background="@color/background" | ||
| android:orientation="vertical" | ||
|
Comment on lines
33
to
36
|
||
| android:paddingLeft="@dimen/activity_horizontal_margin" | ||
| android:paddingStart="@dimen/activity_horizontal_margin" | ||
| android:paddingTop="@dimen/activity_vertical_margin" | ||
| android:paddingRight="@dimen/activity_horizontal_margin" | ||
| android:paddingEnd="@dimen/activity_horizontal_margin" | ||
| android:paddingBottom="@dimen/activity_vertical_margin"> | ||
|
|
||
| <FrameLayout | ||
| android:id="@+id/main_fragment" | ||
| android:layout_width="match_parent" | ||
| android:layout_height="wrap_content" /> | ||
| android:layout_height="match_parent" /> | ||
|
|
||
| </LinearLayout> | ||
|
|
||
|
|
@@ -49,9 +51,7 @@ | |
| android:layout_width="match_parent" | ||
| android:layout_height="wrap_content" | ||
| android:layout_alignParentBottom="true" | ||
| android:background="@color/primary_material_dark" | ||
| app:itemIconTint="@drawable/menu_selector" | ||
| app:itemTextColor="@drawable/menu_selector" | ||
| android:background="?attr/colorSurface" | ||
| app:labelVisibilityMode="labeled" | ||
| app:menu="@menu/nav_bottom_menu" /> | ||
|
|
||
|
|
||
| Original file line number | Diff line number | Diff line change | ||||
|---|---|---|---|---|---|---|
|
|
@@ -20,12 +20,12 @@ | |||||
| <LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" | ||||||
| android:layout_width="match_parent" | ||||||
| android:layout_height="@dimen/nav_header_height" | ||||||
| android:background="@color/background" | ||||||
| android:background="@color/drawer_header_background" | ||||||
| android:gravity="bottom" | ||||||
| android:orientation="horizontal" | ||||||
| android:paddingBottom="@dimen/activity_vertical_margin" | ||||||
| android:paddingLeft="@dimen/activity_horizontal_margin" | ||||||
| android:paddingRight="@dimen/activity_horizontal_margin" | ||||||
| android:paddingStart="@dimen/activity_horizontal_margin" | ||||||
| android:paddingEnd="@dimen/activity_horizontal_margin" | ||||||
| android:paddingTop="@dimen/activity_vertical_margin"> | ||||||
|
|
||||||
| <ImageView | ||||||
|
|
@@ -38,9 +38,10 @@ | |||||
| <TextView | ||||||
| android:layout_width="match_parent" | ||||||
| android:layout_height="wrap_content" | ||||||
| android:paddingLeft="@dimen/activity_horizontal_margin" | ||||||
| android:paddingRight="@dimen/activity_horizontal_margin" | ||||||
| android:paddingStart="@dimen/activity_horizontal_margin" | ||||||
| android:paddingEnd="@dimen/activity_horizontal_margin" | ||||||
| android:text="@string/app_full_name" | ||||||
| android:textColor="@color/on_surface" | ||||||
|
||||||
| android:textColor="@color/on_surface" | |
| android:textColor="?attr/colorOnSurface" |
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -20,17 +20,22 @@ | |
| <androidx.coordinatorlayout.widget.CoordinatorLayout xmlns:android="http://schemas.android.com/apk/res/android" | ||
| android:layout_width="match_parent" | ||
| android:layout_height="wrap_content" | ||
| android:background="?attr/colorSurface" | ||
| android:fitsSystemWindows="true"> | ||
|
|
||
| <com.google.android.material.appbar.AppBarLayout | ||
| android:layout_width="match_parent" | ||
| android:layout_height="wrap_content" | ||
| android:background="?attr/colorSurface" | ||
| android:elevation="0dp" | ||
| android:theme="@style/ThemeOverlay"> | ||
|
|
||
| <androidx.appcompat.widget.Toolbar | ||
| android:id="@+id/toolbar" | ||
| android:layout_width="match_parent" | ||
| android:layout_height="?attr/actionBarSize" /> | ||
| android:layout_height="?attr/actionBarSize" | ||
| android:paddingStart="@dimen/activity_horizontal_margin" | ||
| android:paddingEnd="@dimen/activity_horizontal_margin" /> | ||
|
Comment on lines
26
to
+38
|
||
|
|
||
| </com.google.android.material.appbar.AppBarLayout> | ||
|
|
||
|
|
||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,46 @@ | ||
| <?xml version="1.0" encoding="utf-8"?> | ||
| <!-- | ||
| ~ WiFiAnalyzer | ||
| ~ Copyright (C) 2015 - 2026 VREM Software Development <VREMSoftwareDevelopment@gmail.com> | ||
| ~ | ||
| ~ This program is free software: you can redistribute it and/or modify | ||
| ~ it under the terms of the GNU General Public License as published by | ||
| ~ the Free Software Foundation, either version 3 of the License, or | ||
| ~ (at your option) any later version. | ||
| ~ | ||
| ~ This program is distributed in the hope that it will be useful, | ||
| ~ but WITHOUT ANY WARRANTY; without even the implied warranty of | ||
| ~ MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | ||
| ~ GNU General Public License for more details. | ||
| ~ | ||
| ~ You should have received a copy of the GNU General Public License | ||
| ~ along with this program. If not, see <http://www.gnu.org/licenses/> | ||
| --> | ||
| <resources> | ||
| <color name="brand_primary">#A8C7FA</color> | ||
| <color name="brand_on_primary">#0A1B33</color> | ||
| <color name="brand_primary_container">#20406C</color> | ||
| <color name="brand_on_primary_container">#D7E3FF</color> | ||
|
|
||
| <color name="surface">#101418</color> | ||
| <color name="surface_variant">#1F2630</color> | ||
| <color name="surface_container">#171C22</color> | ||
| <color name="surface_container_high">#20262E</color> | ||
| <color name="on_surface">#E3E9F1</color> | ||
| <color name="on_surface_variant">#AAB5C3</color> | ||
| <color name="outline">#3C4654</color> | ||
| <color name="drawer_header_background">#16202B</color> | ||
|
|
||
| <color name="regular">@color/on_surface_variant</color> | ||
| <color name="selected">@color/brand_primary</color> | ||
| <color name="channel">@color/on_surface_variant</color> | ||
| <color name="channel_number">#5ED3CD</color> | ||
| <color name="frequency">#83B8FF</color> | ||
| <color name="security">#D7CCC8</color> | ||
| <color name="distance">#86D993</color> | ||
| <color name="error">#FFB4AB</color> | ||
| <color name="warning">#F3C969</color> | ||
| <color name="success">#86D993</color> | ||
| <color name="background">@color/surface</color> | ||
| <color name="black">#000000</color> | ||
| </resources> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This drawable uses
insetLeft/insetRight, which won’t mirror in RTL layouts even though the app enables RTL (supportsRtl=true). UseinsetStart/insetEndso selection insets are correct for RTL users.