aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/ui/src/main/res/values/styles.xml
diff options
context:
space:
mode:
authorHarsh Shandilya <me@msfjarvis.dev>2021-04-21 16:58:21 +0530
committerHarsh Shandilya <me@msfjarvis.dev>2021-04-21 17:17:42 +0530
commit8e9b2c6f05c9819822df68afb95668f5e727e5c9 (patch)
tree09927ee3c8e252f2464eeb172146622e81013952 /ui/src/main/res/values/styles.xml
parentstrings: replace three dots with ellipsis character (diff)
downloadwireguard-android-8e9b2c6f05c9819822df68afb95668f5e727e5c9.tar.xz
wireguard-android-8e9b2c6f05c9819822df68afb95668f5e727e5c9.zip
ui: abstract out theme attributes to reduce overlap
Signed-off-by: Harsh Shandilya <me@msfjarvis.dev>
Diffstat (limited to '')
-rw-r--r--ui/src/main/res/values/styles.xml4
1 files changed, 3 insertions, 1 deletions
diff --git a/ui/src/main/res/values/styles.xml b/ui/src/main/res/values/styles.xml
index b50b4dd7..b90f111f 100644
--- a/ui/src/main/res/values/styles.xml
+++ b/ui/src/main/res/values/styles.xml
@@ -1,7 +1,7 @@
<?xml version="1.0" encoding="utf-8"?>
<resources xmlns:android="http://schemas.android.com/apk/res/android">
- <style name="AppTheme" parent="Theme.MaterialComponents.DayNight">
+ <style name="WireGuardTheme" parent="Theme.MaterialComponents.DayNight">
<item name="colorPrimary">@color/primary_color</item>
<item name="colorOnPrimary">@color/color_control_normal</item>
<item name="colorPrimaryDark">@color/primary_color</item>
@@ -23,6 +23,8 @@
<item name="materialCardViewStyle">@style/AppTheme.MaterialCardView</item>
</style>
+ <style name="AppTheme" parent="WireGuardTheme" />
+
<style name="AppTheme.MaterialCardView" parent="Widget.MaterialComponents.CardView">
<item name="cornerRadius">4dp</item>
<item name="cardElevation">4dp</item>