mirror of
https://code.briarproject.org/briar/briar.git
synced 2026-02-12 18:59:06 +01:00
The button hides itself when you scroll down the list of contacts and shows again when you scroll up. To properly color the button, the accent color has been defined. It uses the same color as the action bar (primary color). I leave it to a UX designer to adapt the color scheme. Please note that the design support library was used. It includes the app-compat library, so this has been removed from the `build.gradle` file. Closes #199
46 lines
1.8 KiB
XML
46 lines
1.8 KiB
XML
<?xml version="1.0" encoding="utf-8"?>
|
|
<resources xmlns:android="http://schemas.android.com/apk/res/android">
|
|
|
|
<style name="BriarTheme" parent="Theme.AppCompat.Light.DarkActionBar">
|
|
<item name="actionBarStyle">@style/BriarActionBar</item>
|
|
<item name="colorPrimary">@color/briar_primary</item>
|
|
<item name="colorPrimaryDark">@color/briar_primary_dark</item>
|
|
<item name="colorAccent">@color/briar_primary</item>
|
|
<item name="android:textColorPrimary">@color/briar_text_primary</item>
|
|
<item name="android:textColorPrimaryInverse">@color/briar_text_primary_inverse</item>
|
|
<item name="android:textColorSecondary">@color/briar_text_primary</item>
|
|
<item name="android:textColorLink">@color/briar_text_link</item>
|
|
|
|
<!-- The rest of your attributes -->
|
|
</style>
|
|
|
|
<style name="BriarActionBar" parent="Base.Widget.AppCompat.Light.ActionBar.Solid">
|
|
<item name="elevation">1dp</item>
|
|
</style>
|
|
|
|
<style name="BriarButton">
|
|
<item name="android:textSize">@dimen/text_size_medium</item>
|
|
<item name="android:padding">@dimen/margin_large</item>
|
|
</style>
|
|
|
|
<style name="BriarButton.Default"/>
|
|
|
|
<style name="BriarTextTitle">
|
|
<item name="android:textSize">@dimen/text_size_medium</item>
|
|
<item name="android:textColor">@android:color/primary_text_light</item>
|
|
</style>
|
|
|
|
<style name="BriarTextBody">
|
|
<item name="android:textSize">@dimen/text_size_small</item>
|
|
<item name="android:textColor">@android:color/primary_text_light</item>
|
|
</style>
|
|
|
|
<style name="Divider">
|
|
<item name="android:background">?android:attr/listDivider</item>
|
|
</style>
|
|
|
|
<style name="Divider.Horizontal">
|
|
<item name="android:layout_width">match_parent</item>
|
|
<item name="android:layout_height">1px</item>
|
|
</style>
|
|
</resources> |