mirror of
https://code.briarproject.org/briar/briar.git
synced 2026-02-22 23:59:54 +01:00
Add a stroke for private message bubbles on Android 4
This commit is contained in:
@@ -155,7 +155,7 @@ task verifyTranslations {
|
|||||||
|
|
||||||
def folders = ["default", "en-US"]
|
def folders = ["default", "en-US"]
|
||||||
project.file("src/main/res").eachDir { dir ->
|
project.file("src/main/res").eachDir { dir ->
|
||||||
if (dir.name.startsWith("values-") && !dir.name.endsWith("night")) {
|
if (dir.name.startsWith("values-") && !dir.name.endsWith("night") && !dir.name.endsWith("v21")) {
|
||||||
folders.add(dir.name.substring(7).replace("-r", "-"))
|
folders.add(dir.name.substring(7).replace("-r", "-"))
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -14,4 +14,7 @@
|
|||||||
android:top="@dimen/message_bubble_padding_top"/>
|
android:top="@dimen/message_bubble_padding_top"/>
|
||||||
<solid
|
<solid
|
||||||
android:color="@color/msg_in"/>
|
android:color="@color/msg_in"/>
|
||||||
|
<stroke
|
||||||
|
android:width="@dimen/message_bubble_stroke"
|
||||||
|
android:color="@color/msg_stroke"/>
|
||||||
</shape>
|
</shape>
|
||||||
|
|||||||
@@ -14,4 +14,7 @@
|
|||||||
android:top="@dimen/message_bubble_padding_top"/>
|
android:top="@dimen/message_bubble_padding_top"/>
|
||||||
<solid
|
<solid
|
||||||
android:color="@color/msg_in"/>
|
android:color="@color/msg_in"/>
|
||||||
|
<stroke
|
||||||
|
android:width="@dimen/message_bubble_stroke"
|
||||||
|
android:color="@color/msg_stroke"/>
|
||||||
</shape>
|
</shape>
|
||||||
|
|||||||
@@ -14,4 +14,7 @@
|
|||||||
android:top="@dimen/message_bubble_padding_top"/>
|
android:top="@dimen/message_bubble_padding_top"/>
|
||||||
<solid
|
<solid
|
||||||
android:color="@color/msg_out"/>
|
android:color="@color/msg_out"/>
|
||||||
|
<stroke
|
||||||
|
android:width="@dimen/message_bubble_stroke"
|
||||||
|
android:color="@color/msg_stroke_dark"/>
|
||||||
</shape>
|
</shape>
|
||||||
|
|||||||
@@ -14,4 +14,7 @@
|
|||||||
android:top="@dimen/message_bubble_padding_top"/>
|
android:top="@dimen/message_bubble_padding_top"/>
|
||||||
<solid
|
<solid
|
||||||
android:color="@color/msg_out"/>
|
android:color="@color/msg_out"/>
|
||||||
|
<stroke
|
||||||
|
android:width="@dimen/message_bubble_stroke"
|
||||||
|
android:color="@color/msg_stroke_dark"/>
|
||||||
</shape>
|
</shape>
|
||||||
|
|||||||
@@ -14,4 +14,7 @@
|
|||||||
android:top="@dimen/message_bubble_padding_top"/>
|
android:top="@dimen/message_bubble_padding_top"/>
|
||||||
<solid
|
<solid
|
||||||
android:color="@color/notice_in"/>
|
android:color="@color/notice_in"/>
|
||||||
|
<stroke
|
||||||
|
android:width="@dimen/message_bubble_stroke"
|
||||||
|
android:color="@color/msg_stroke"/>
|
||||||
</shape>
|
</shape>
|
||||||
|
|||||||
@@ -14,4 +14,7 @@
|
|||||||
android:top="@dimen/message_bubble_padding_bottom"/>
|
android:top="@dimen/message_bubble_padding_bottom"/>
|
||||||
<solid
|
<solid
|
||||||
android:color="@color/notice_in"/>
|
android:color="@color/notice_in"/>
|
||||||
|
<stroke
|
||||||
|
android:width="@dimen/message_bubble_stroke"
|
||||||
|
android:color="@color/msg_stroke"/>
|
||||||
</shape>
|
</shape>
|
||||||
|
|||||||
@@ -14,4 +14,7 @@
|
|||||||
android:top="@dimen/message_bubble_padding_top"/>
|
android:top="@dimen/message_bubble_padding_top"/>
|
||||||
<solid
|
<solid
|
||||||
android:color="@color/notice_out"/>
|
android:color="@color/notice_out"/>
|
||||||
|
<stroke
|
||||||
|
android:width="@dimen/message_bubble_stroke"
|
||||||
|
android:color="@color/msg_stroke_dark"/>
|
||||||
</shape>
|
</shape>
|
||||||
|
|||||||
@@ -14,4 +14,7 @@
|
|||||||
android:top="@dimen/message_bubble_padding_bottom"/>
|
android:top="@dimen/message_bubble_padding_bottom"/>
|
||||||
<solid
|
<solid
|
||||||
android:color="@color/notice_out"/>
|
android:color="@color/notice_out"/>
|
||||||
|
<stroke
|
||||||
|
android:width="@dimen/message_bubble_stroke"
|
||||||
|
android:color="@color/msg_stroke_dark"/>
|
||||||
</shape>
|
</shape>
|
||||||
|
|||||||
@@ -12,6 +12,7 @@
|
|||||||
<color name="msg_out">@color/briar_blue_elio_light</color>
|
<color name="msg_out">@color/briar_blue_elio_light</color>
|
||||||
<color name="notice_in">@color/briar_blue_dark</color>
|
<color name="notice_in">@color/briar_blue_dark</color>
|
||||||
<color name="notice_out">@color/briar_blue_elio</color>
|
<color name="notice_out">@color/briar_blue_elio</color>
|
||||||
|
<color name="msg_stroke">@color/msg_stroke_dark</color>
|
||||||
|
|
||||||
<color name="window_background">@color/briar_blue_very_dark</color>
|
<color name="window_background">@color/briar_blue_very_dark</color>
|
||||||
<color name="card_background">@color/briar_blue_dark</color>
|
<color name="card_background">@color/briar_blue_dark</color>
|
||||||
|
|||||||
5
briar-android/src/main/res/values-v21/dimens.xml
Normal file
5
briar-android/src/main/res/values-v21/dimens.xml
Normal file
@@ -0,0 +1,5 @@
|
|||||||
|
<resources>
|
||||||
|
|
||||||
|
<dimen name="message_bubble_stroke">0px</dimen>
|
||||||
|
|
||||||
|
</resources>
|
||||||
@@ -37,6 +37,9 @@
|
|||||||
<color name="msg_out">@color/briar_blue_elio_light</color>
|
<color name="msg_out">@color/briar_blue_elio_light</color>
|
||||||
<color name="notice_in">@color/briar_blue_grey</color>
|
<color name="notice_in">@color/briar_blue_grey</color>
|
||||||
<color name="notice_out">@color/briar_blue_elio</color>
|
<color name="notice_out">@color/briar_blue_elio</color>
|
||||||
|
<color name="msg_stroke_light">#cbcbcb</color>
|
||||||
|
<color name="msg_stroke_dark">#333333</color>
|
||||||
|
<color name="msg_stroke">@color/msg_stroke_light</color>
|
||||||
|
|
||||||
<!-- text colors -->
|
<!-- text colors -->
|
||||||
<color name="briar_text_link">@color/briar_blue_light</color>
|
<color name="briar_text_link">@color/briar_blue_light</color>
|
||||||
|
|||||||
@@ -48,6 +48,7 @@
|
|||||||
<dimen name="message_bubble_elevation">2dp</dimen>
|
<dimen name="message_bubble_elevation">2dp</dimen>
|
||||||
<dimen name="message_bubble_margin_tail">8dp</dimen>
|
<dimen name="message_bubble_margin_tail">8dp</dimen>
|
||||||
<dimen name="message_bubble_margin_non_tail">30dp</dimen>
|
<dimen name="message_bubble_margin_non_tail">30dp</dimen>
|
||||||
|
<dimen name="message_bubble_stroke">1px</dimen>
|
||||||
|
|
||||||
<dimen name="forum_nested_line_width">2dp</dimen>
|
<dimen name="forum_nested_line_width">2dp</dimen>
|
||||||
<dimen name="forum_nested_indicator">24dp</dimen>
|
<dimen name="forum_nested_indicator">24dp</dimen>
|
||||||
|
|||||||
Reference in New Issue
Block a user