mirror of
https://github.com/emanuele-f/PCAPdroid.git
synced 2026-06-19 21:05:25 +08:00
Improve buttons style
This commit is contained in:
parent
79ad691e73
commit
bb55072f45
@ -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 {
|
||||
|
||||
@ -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
|
||||
|
||||
@ -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
|
||||
|
||||
@ -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>
|
||||
@ -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>
|
||||
|
||||
Loading…
Reference in New Issue
Block a user