Skip to content
This repository was archived by the owner on Sep 3, 2024. It is now read-only.

Commit 6e22377

Browse files
committed
Preference fix, dimens fix, button style rework
1 parent 844b429 commit 6e22377

File tree

11 files changed

+43
-44
lines changed

11 files changed

+43
-44
lines changed

app/src/main/res/layout/activity_about.xml

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -11,27 +11,27 @@
1111

1212
<com.google.android.material.button.MaterialButton
1313
android:id="@+id/about_btn1"
14-
style="@style/AboutPageButtonStyle"
14+
style="@style/ButtonStyle.AboutPage"
1515
android:text="Loading" />
1616

1717
<com.google.android.material.button.MaterialButton
1818
android:id="@+id/about_btn2"
19-
style="@style/AboutPageButtonStyle"
19+
style="@style/ButtonStyle.AboutPage"
2020
android:text="No Update" />
2121

2222
<com.google.android.material.button.MaterialButton
2323
android:id="@+id/about_btn3"
24-
style="@style/AboutPageButtonStyle"
24+
style="@style/ButtonStyle.AboutPage"
2525
android:text="Update available" />
2626

2727
<com.google.android.material.button.MaterialButton
2828
android:id="@+id/about_btn4"
29-
style="@style/AboutPageButtonStyle"
29+
style="@style/ButtonStyle.AboutPage"
3030
android:text="Not Updateable" />
3131

3232
<com.google.android.material.button.MaterialButton
3333
android:id="@+id/about_btn5"
34-
style="@style/AboutPageButtonStyle"
34+
style="@style/ButtonStyle.AboutPage"
3535
android:text="No Connection" />
3636

3737
</de.dlyt.yanndroid.oneui.layout.AboutPage>

app/src/main/res/layout/fragment_views_tab.xml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -191,7 +191,7 @@
191191
android:background="@color/divider_color" />
192192

193193
<com.google.android.material.button.MaterialButton
194-
style="@style/ButtonStyle.Invert"
194+
style="@style/ButtonStyle.Colored"
195195
android:layout_width="match_parent"
196196
android:layout_height="wrap_content"
197197
android:layout_weight="1"
@@ -206,7 +206,7 @@
206206
android:background="@color/divider_color" />
207207

208208
<com.google.android.material.button.MaterialButton
209-
style="@style/ButtonStyle.Invert.Secondary"
209+
style="@style/ButtonStyle.Filled"
210210
android:layout_width="match_parent"
211211
android:layout_height="wrap_content"
212212
android:layout_weight="1"
@@ -297,7 +297,7 @@
297297
android:orientation="vertical">
298298

299299
<com.google.android.material.button.MaterialButton
300-
style="@style/ButtonStyle.Invert"
300+
style="@style/ButtonStyle.Colored"
301301
android:layout_width="200dp"
302302
android:layout_height="wrap_content"
303303
android:layout_gravity="center"
@@ -306,7 +306,7 @@
306306
android:text="Classic" />
307307

308308
<com.google.android.material.button.MaterialButton
309-
style="@style/ButtonStyle.Invert"
309+
style="@style/ButtonStyle.Colored"
310310
android:layout_width="200dp"
311311
android:layout_height="wrap_content"
312312
android:layout_gravity="center"

yanndroid/oneui/src/main/java/de/dlyt/yanndroid/oneui/preference/DropDownPreference.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -81,7 +81,7 @@ public int findSpinnerIndexOfValue(String value) {
8181
}
8282

8383
@Override
84-
protected void notifyChanged() {
84+
public void notifyChanged() {
8585
super.notifyChanged();
8686
mAdapter.notifyDataSetChanged();
8787
}

yanndroid/oneui/src/main/java/de/dlyt/yanndroid/oneui/preference/Preference.java

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -505,6 +505,7 @@ public final int getWidgetLayoutResource() {
505505

506506
public void setWidgetLayoutResource(int var1) {
507507
this.mWidgetLayoutResId = var1;
508+
this.notifyChanged();
508509
}
509510

510511
public boolean hasKey() {
@@ -597,7 +598,7 @@ public final boolean isVisible() {
597598
return this.mVisible;
598599
}
599600

600-
protected void notifyChanged() {
601+
public void notifyChanged() {
601602
if (this.mListener != null) {
602603
this.mListener.onPreferenceChange(this);
603604
}

yanndroid/oneui/src/main/res/drawable/about_screen_button.xml

Lines changed: 0 additions & 9 deletions
This file was deleted.
Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
<?xml version="1.0" encoding="utf-8"?>
2+
<ripple xmlns:android="http://schemas.android.com/apk/res/android"
3+
android:color="@color/item_color">
4+
<item
5+
android:id="@android:id/mask"
6+
android:drawable="@drawable/sesl_btn_default_mask" />
7+
<item android:drawable="@drawable/sesl_btn_default_background" />
8+
</ripple>

yanndroid/oneui/src/main/res/layout-land/samsung_about_screen.xml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -71,12 +71,12 @@
7171

7272
<com.google.android.material.button.MaterialButton
7373
android:id="@+id/update_button"
74-
style="@style/AboutPageButtonStyle.Update"
74+
style="@style/ButtonStyle.AboutPageUpdate"
7575
android:text="@string/sesl_update" />
7676

7777
<com.google.android.material.button.MaterialButton
7878
android:id="@+id/retry_button"
79-
style="@style/AboutPageButtonStyle.Update"
79+
style="@style/ButtonStyle.AboutPageUpdate"
8080
android:text="@string/retry" />
8181

8282

yanndroid/oneui/src/main/res/layout/samsung_about_screen.xml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -68,12 +68,12 @@
6868

6969
<com.google.android.material.button.MaterialButton
7070
android:id="@+id/update_button"
71-
style="@style/AboutPageButtonStyle.Update"
71+
style="@style/ButtonStyle.AboutPageUpdate"
7272
android:text="@string/sesl_update" />
7373

7474
<com.google.android.material.button.MaterialButton
7575
android:id="@+id/retry_button"
76-
style="@style/AboutPageButtonStyle.Update"
76+
style="@style/ButtonStyle.AboutPageUpdate"
7777
android:text="@string/retry" />
7878

7979

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
<?xml version="1.0" encoding="utf-8"?>
22
<resources>
33
<dimen name="sesl_switch_divider_height">2.0px</dimen>
4-
<dimen name="sesl_list_divider_height">2.0px</dimen>
4+
<dimen name="sesl_list_divider_height">3.0px</dimen>
55
<dimen name="sesl_edit_textfield_cursor_width">5.0px</dimen>
66
</resources>

yanndroid/oneui/src/main/res/values/dimens.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@
2727
<dimen name="progress_bar_height">24.0dip</dimen>
2828
<dimen name="progress_bar_radius">12.0dip</dimen>
2929

30-
<dimen name="sesl_button_corner_radius">18.0dip</dimen>
30+
<dimen name="sesl_button_corner_radius">26.0dip</dimen>
3131
<dimen name="sesl_button_text_size">15.0sp</dimen>
3232
<dimen name="sesl_show_button_background_radius">2.0dip</dimen>
3333

0 commit comments

Comments
 (0)