Make header text and tertiary text color themeable
This commit is contained in:
@@ -6,6 +6,6 @@
|
||||
android:height="2dp"
|
||||
android:width="1000dp" />
|
||||
|
||||
<solid android:color="@color/header_text" />
|
||||
<solid android:color="?attr/colorHeaderText" />
|
||||
|
||||
</shape>
|
||||
</shape>
|
||||
|
||||
@@ -29,7 +29,7 @@
|
||||
android:id="@+id/add_user_id_comment"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:textColor="@color/tertiary_text_light"
|
||||
android:textColor="?attr/colorTertiaryText"
|
||||
android:singleLine="true"
|
||||
android:lines="1"
|
||||
android:maxLines="1"
|
||||
|
||||
@@ -28,7 +28,7 @@
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_marginBottom="2dp"
|
||||
android:text="@string/label_name"
|
||||
android:textColor="@color/tertiary_text_light"
|
||||
android:textColor="?attr/colorTertiaryText"
|
||||
android:textAppearance="?android:attr/textAppearanceSmall" />
|
||||
|
||||
<TextView
|
||||
@@ -44,7 +44,7 @@
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_marginBottom="2dp"
|
||||
android:text="@string/label_email"
|
||||
android:textColor="@color/tertiary_text_light"
|
||||
android:textColor="?attr/colorTertiaryText"
|
||||
android:textAppearance="?android:attr/textAppearanceSmall" />
|
||||
|
||||
<TextView
|
||||
@@ -182,4 +182,4 @@
|
||||
style="?android:attr/borderlessButtonStyle" />
|
||||
</LinearLayout>
|
||||
|
||||
</RelativeLayout>
|
||||
</RelativeLayout>
|
||||
|
||||
@@ -124,4 +124,4 @@
|
||||
android:layout_marginBottom="8dp" />
|
||||
</LinearLayout>
|
||||
|
||||
</ScrollView>
|
||||
</ScrollView>
|
||||
|
||||
@@ -55,4 +55,4 @@
|
||||
android:clickable="true"
|
||||
android:layout_centerVertical="true"
|
||||
android:background="?android:selectableItemBackground" />
|
||||
</RelativeLayout>
|
||||
</RelativeLayout>
|
||||
|
||||
@@ -25,7 +25,7 @@
|
||||
android:layout_height="wrap_content"
|
||||
android:text="@string/none"
|
||||
android:layout_gravity="center_vertical"
|
||||
android:textColor="@color/header_text" />
|
||||
android:textColor="?attr/colorHeaderText" />
|
||||
</LinearLayout>
|
||||
|
||||
<LinearLayout
|
||||
@@ -34,4 +34,4 @@
|
||||
android:layout_height="wrap_content"
|
||||
android:orientation="vertical"
|
||||
android:visibility="gone" />
|
||||
</LinearLayout>
|
||||
</LinearLayout>
|
||||
|
||||
@@ -60,4 +60,4 @@
|
||||
tools:src="@drawable/status_signature_revoked_cutout_24dp"
|
||||
/>
|
||||
|
||||
</LinearLayout>
|
||||
</LinearLayout>
|
||||
|
||||
@@ -34,7 +34,7 @@
|
||||
android:id="@+id/user_id_item_comment"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:textColor="@color/tertiary_text_light"
|
||||
android:textColor="?attr/colorTertiaryText"
|
||||
android:text="comment"
|
||||
android:textAppearance="?android:attr/textAppearanceSmall" />
|
||||
|
||||
|
||||
@@ -4,5 +4,7 @@
|
||||
<attr name="colorFab" format="color" />
|
||||
<attr name="colorFabPressed" format="color" />
|
||||
<attr name="colorEmphasis" format="color" />
|
||||
<attr name="colorHeaderText" format="color" />
|
||||
<attr name="colorTertiaryText" format="color" />
|
||||
</declare-styleable>
|
||||
</resources>
|
||||
|
||||
@@ -4,11 +4,7 @@
|
||||
<color name="icons">#FFFFFF</color>
|
||||
<color name="transparent">#00FFFFFF</color>
|
||||
|
||||
<color name="header_text">#212121</color>
|
||||
|
||||
<color name="bg_gray">#cecbce</color>
|
||||
<color name="tertiary_text_light">#808080</color>
|
||||
<color name="alert">#ffdd3333</color>
|
||||
|
||||
<color name="holo_gray_bright">#33CCCCCC</color>
|
||||
|
||||
|
||||
@@ -7,7 +7,7 @@
|
||||
<item name="android:layout_marginTop">16dp</item>
|
||||
<item name="android:paddingLeft">16dp</item>
|
||||
<item name="android:textStyle">normal</item>
|
||||
<item name="android:textColor">@color/header_text</item>
|
||||
<item name="android:textColor">?attr/colorHeaderText</item>
|
||||
<item name="android:textSize">17sp</item>
|
||||
</style>
|
||||
|
||||
@@ -17,7 +17,7 @@
|
||||
<item name="android:layout_marginTop">8dp</item>
|
||||
<item name="android:paddingLeft">8dp</item>
|
||||
<item name="android:textStyle">bold</item>
|
||||
<item name="android:textColor">@color/header_text</item>
|
||||
<item name="android:textColor">?attr/colorHeaderText</item>
|
||||
<item name="android:textSize">14sp</item>
|
||||
</style>
|
||||
|
||||
@@ -34,4 +34,4 @@
|
||||
<item name="android:background">?android:attr/listDivider</item>
|
||||
</style>
|
||||
|
||||
</resources>
|
||||
</resources>
|
||||
|
||||
@@ -10,6 +10,9 @@
|
||||
<item name="colorFabPressed">#1976d2</item>
|
||||
|
||||
<item name="colorEmphasis">#2196f3</item>
|
||||
<item name="colorHeaderText">#212121</item>
|
||||
<item name="colorTertiaryText">#808080</item>
|
||||
|
||||
|
||||
<!-- remove actionbar and title, we use toolbar! -->
|
||||
<item name="windowNoTitle">true</item>
|
||||
@@ -28,6 +31,8 @@
|
||||
<item name="colorFabPressed">#1976d2</item>
|
||||
|
||||
<item name="colorEmphasis">#2196f3</item>
|
||||
<item name="colorHeaderText">#a0a0a0</item>
|
||||
<item name="colorTertiaryText">#808080</item>
|
||||
|
||||
<!-- remove actionbar and title, we use toolbar! -->
|
||||
<item name="windowNoTitle">true</item>
|
||||
|
||||
Reference in New Issue
Block a user