Improve buttons style

This commit is contained in:
emanuele-f 2021-10-19 22:58:17 +02:00
parent 79ad691e73
commit bb55072f45
5 changed files with 14 additions and 9 deletions

View File

@ -53,7 +53,7 @@ public class MatchList {
private final Context mContext;
private final SharedPreferences mPrefs;
private final String mPrefName;
private ArrayList<Rule> mRules = new ArrayList<>();
private final ArrayList<Rule> mRules = new ArrayList<>();
private final HashMap<String, Rule> mMatches = new HashMap<>();
public enum RuleType {

View File

@ -185,8 +185,8 @@
android:layout_width="0dp"
android:layout_height="42dip"
android:layout_weight="1"
android:textSize="12sp"
tools:ignore="ButtonStyle" />
style="@style/Widget.MaterialComponents.Button.TextButton"
android:textColor="@color/colorTabText" />
<Button
android:id="@+id/show_connections"
@ -194,9 +194,7 @@
android:layout_marginStart="5dp"
android:layout_width="0dp"
android:layout_height="42dip"
android:layout_weight="1"
android:textSize="12sp"
tools:ignore="ButtonStyle"/>
android:layout_weight="1" />
</LinearLayout>
<TextView

View File

@ -29,10 +29,11 @@
android:id="@+id/edit_mask"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_alignParentEnd="true"
android:layout_marginBottom="15dp"
android:text="@string/edit_rules"
android:layout_alignParentEnd="true"
android:textSize="12sp" />
style="?attr/materialButtonOutlinedStyle"
android:textColor="@color/colorTabText" />
</RelativeLayout>
<TextView

View File

@ -3,5 +3,11 @@
<!--
<item name="android:colorBackground">#ff000000</item>
-->
<item name="materialThemeOverlay">@style/ButtonStyleTextColor</item>
</style>
<style name="ButtonStyleTextColor">
<item name="colorOnPrimary">@color/colorTabText</item>
<item name="colorOnSecondary">@color/colorTabText</item>
</style>
</resources>

View File

@ -4,7 +4,7 @@
<color name="colorTabText">@android:color/tertiary_text_light</color>
<color name="colorTabTextSelected">@android:color/secondary_text_light</color>
<color name="colorPrimary">#512da8</color>
<color name="colorPrimaryDark">#361e73</color>
<color name="colorPrimaryDark">#4D3294</color>
<color name="colorAccent">#D81B60</color>
<color name="colorBackgroundGray">#2C000000</color>
<color name="navViewBackground">@color/design_default_color_surface</color>