Implement a color picker (#124)
* Proper implementation on the color picker. * Disabling the icons for the color picker menu * Adding a green theme * Making the green theme more readable * More polishes over the green theme * Adding blue theme and refactoring styles.xml * Make badged settings icon follow accent colors * Adding an icon to the color picker setting * Fix readability issue on the light blue theme * Adding orange theme, tweaking the blue and green theme * Adding yellow theme * Making it so that the fab follows the theme * Fixing the TrueBlack themes for everything * Make it so that the publish button also follows the theme * Editing some drawable files to make them also follow the theme * Making it so that the boost icon is also following the theme when clicked * Make follow requests icon badge follow the color scheme and also make it that the profile top bar menu also follows the theme. This should be it Co-authored-by: sk <sk22@mailbox.org>
This commit is contained in:
46
mastodon/src/main/res/layout/item_settings_color_picker.xml
Normal file
46
mastodon/src/main/res/layout/item_settings_color_picker.xml
Normal file
@@ -0,0 +1,46 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<org.joinmastodon.android.ui.views.AutoOrientationLinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
|
||||
xmlns:tools="http://schemas.android.com/tools"
|
||||
android:orientation="horizontal"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="48dp"
|
||||
android:gravity="center_vertical"
|
||||
android:layoutDirection="locale">
|
||||
|
||||
<ImageView
|
||||
android:id="@+id/icon"
|
||||
android:layout_width="24dp"
|
||||
android:layout_height="24dp"
|
||||
android:layout_marginStart="16dp"
|
||||
android:layout_marginEnd="32dp"
|
||||
android:importantForAccessibility="no"
|
||||
android:tint="?android:textColorPrimary"
|
||||
tools:src="@drawable/ic_color_theme_preference"/>
|
||||
|
||||
|
||||
<TextView
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_marginEnd="8dp"
|
||||
android:gravity="center_vertical"
|
||||
android:textColor="?android:textColorPrimary"
|
||||
android:textSize="16sp"
|
||||
android:singleLine="true"
|
||||
android:ellipsize="end"
|
||||
android:text="@string/sk_settings_color_picker"/>
|
||||
|
||||
<Button
|
||||
android:id="@+id/color_picker_button"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="32dp"
|
||||
android:background="@drawable/bg_inline_button"
|
||||
android:elevation="0dp"
|
||||
android:ellipsize="middle"
|
||||
android:fontFamily="sans-serif-medium"
|
||||
android:singleLine="true"
|
||||
android:stateListAnimator="@null"
|
||||
android:textColor="?android:textColorPrimary"
|
||||
android:textSize="16sp"
|
||||
tools:text="@string/sk_color_theme_pink" />
|
||||
|
||||
</org.joinmastodon.android.ui.views.AutoOrientationLinearLayout>
|
||||
Reference in New Issue
Block a user