Fix Downloader colors

This commit is contained in:
krlvm 2021-03-29 21:35:00 +03:00
parent c906cb57ee
commit 561d5675f7
No known key found for this signature in database
GPG Key ID: B8552A91FD265536
6 changed files with 15 additions and 23 deletions

View File

@ -39,7 +39,8 @@
android:layout_marginRight="1dp" android:layout_marginRight="1dp"
android:contentDescription="TODO" android:contentDescription="TODO"
android:scaleType="center" android:scaleType="center"
app:srcCompat="@drawable/ic_more_vert" /> app:srcCompat="@drawable/ic_more_vert"
app:tint="?attr/actionColor" />
</RelativeLayout> </RelativeLayout>
@ -52,7 +53,8 @@
android:contentDescription="TODO" android:contentDescription="TODO"
android:gravity="center" android:gravity="center"
android:padding="10dp" android:padding="10dp"
android:scaleType="fitXY" /> android:scaleType="fitXY"
app:tint="?attr/actionColor" />
<TextView <TextView
android:id="@+id/item_name" android:id="@+id/item_name"

View File

@ -18,7 +18,8 @@
android:contentDescription="TODO" android:contentDescription="TODO"
android:gravity="center" android:gravity="center"
android:padding="15dp" android:padding="15dp"
android:scaleType="fitXY" /> android:scaleType="fitXY"
app:tint="?attr/actionColor" />
<TextView <TextView
android:id="@+id/item_name" android:id="@+id/item_name"
@ -71,7 +72,8 @@
android:layout_marginRight="4dp" android:layout_marginRight="4dp"
android:contentDescription="TODO" android:contentDescription="TODO"
android:scaleType="centerInside" android:scaleType="centerInside"
app:srcCompat="@drawable/ic_more_vert" /> app:srcCompat="@drawable/ic_more_vert"
app:tint="?attr/actionColor" />
</RelativeLayout> </RelativeLayout>

View File

@ -10,7 +10,6 @@
android:layout_marginRight="8dp" android:layout_marginRight="8dp"
android:orientation="vertical"> android:orientation="vertical">
<TextView <TextView
android:id="@+id/item_name" android:id="@+id/item_name"
android:layout_width="wrap_content" android:layout_width="wrap_content"
@ -21,9 +20,4 @@
android:textSize="16sp" android:textSize="16sp"
android:textStyle="bold" /> android:textStyle="bold" />
<View
android:layout_width="match_parent"
android:layout_height="2dp"
android:background="@color/black_settings_accent_color" />
</LinearLayout> </LinearLayout>

View File

@ -11,6 +11,7 @@
<attr name="focused_selector" format="reference" /> <attr name="focused_selector" format="reference" />
<attr name="dashed_border" format="reference" /> <attr name="dashed_border" format="reference" />
<attr name="actionColor" format="color" />
<attr name="separator_color" format="color" /> <attr name="separator_color" format="color" />
<attr name="contrast_background_color" format="color" /> <attr name="contrast_background_color" format="color" />
<attr name="windowBackground" format="color" /> <attr name="windowBackground" format="color" />

View File

@ -13,6 +13,7 @@
<!-- Base Theme --> <!-- Base Theme -->
<style name="Base.V19" parent="Theme.AppCompat.DayNight.NoActionBar"> <style name="Base.V19" parent="Theme.AppCompat.DayNight.NoActionBar">
<item name="actionColor">@color/white</item>
<item name="floatingActionButtonStyle">@style/FloatingActionButtonTheme</item> <item name="floatingActionButtonStyle">@style/FloatingActionButtonTheme</item>
<item name="toolbarSearchColor">@color/white</item> <item name="toolbarSearchColor">@color/white</item>
<item name="preferenceTheme">@style/PreferenceThemeOverlay.v14.Material</item> <item name="preferenceTheme">@style/PreferenceThemeOverlay.v14.Material</item>

View File

@ -61,17 +61,17 @@
</style> </style>
<style name="FloatingActionButtonTheme" parent="Widget.Design.FloatingActionButton"> <style name="FloatingActionButtonTheme" parent="Widget.Design.FloatingActionButton">
<item name="tint">@color/white</item> <item name="tint">?attr/actionColor</item>
</style> </style>
<style name="DarkPopupMenu" parent="ThemeOverlay.AppCompat.Dark.ActionBar"/> <style name="DarkPopupMenu" parent="ThemeOverlay.AppCompat.Dark.ActionBar"/>
<style name="ToolbarTheme" parent="ThemeOverlay.AppCompat.Dark.ActionBar"> <style name="ToolbarTheme" parent="ThemeOverlay.AppCompat.Dark.ActionBar">
<item name="popupTheme">@style/ThemeOverlay.AppCompat.DayNight.ActionBar</item> <item name="popupTheme">@style/ThemeOverlay.AppCompat.DayNight.ActionBar</item>
<item name="android:textColorPrimary">@android:color/white</item> <item name="android:textColorPrimary">?attr/actionColor</item>
<item name="android:textColorSecondary">@android:color/white</item> <item name="android:textColorSecondary">?attr/actionColor</item>
<item name="tint">@color/white</item> <item name="tint">?attr/actionColor</item>
<item name="iconTint">@color/white</item> <item name="iconTint">?attr/actionColor</item>
</style> </style>
<style name="ContrastToolbarTheme" parent="ThemeOverlay.AppCompat.DayNight.ActionBar"> <style name="ContrastToolbarTheme" parent="ThemeOverlay.AppCompat.DayNight.ActionBar">
<item name="popupTheme">@style/ThemeOverlay.AppCompat.DayNight.ActionBar</item> <item name="popupTheme">@style/ThemeOverlay.AppCompat.DayNight.ActionBar</item>
@ -82,18 +82,10 @@
<item name="toolbarSearchColor">@color/contrastColor</item> <item name="toolbarSearchColor">@color/contrastColor</item>
</style> </style>
<style name="WhiteAccentTheme">
<item name="colorAccent">@color/white</item>
</style>
<style name="WhiteTintTheme"> <style name="WhiteTintTheme">
<item name="tint">@color/white</item> <item name="tint">@color/white</item>
<item name="iconTint">@color/white</item> <item name="iconTint">@color/white</item>
</style> </style>
<style name="DarkTintTheme">
<item name="tint">@color/black</item>
<item name="iconTint">@color/black</item>
</style>
<style name="ContrastTintTheme"> <style name="ContrastTintTheme">
<item name="tint">@color/contrastColor</item> <item name="tint">@color/contrastColor</item>
<item name="iconTint">@color/contrastColor</item> <item name="iconTint">@color/contrastColor</item>