Skip to content

Commit

Permalink
#15: Add PlayersChampionshipFinals Style
Browse files Browse the repository at this point in the history
  • Loading branch information
Entreco committed Nov 23, 2018
1 parent 2114626 commit 1f6e8a1
Show file tree
Hide file tree
Showing 4 changed files with 60 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,8 @@ class Styler @Inject constructor(private val prefs: SharedPreferences, private v
PDC_2018("Pdc_2018"),
BDO_2018("Bdo_2018"),
BDO("Bdo"),
PDC("Pdc");
PDC("Pdc"),
PCF("Pcf");
}

fun get(): Int {
Expand All @@ -28,6 +29,7 @@ class Styler @Inject constructor(private val prefs: SharedPreferences, private v
Style.BDO_2018.style -> R.style.Bdo_2018
Style.PDC.style -> R.style.Pdc
Style.BDO.style -> R.style.Bdo
Style.PCF.style -> R.style.Pcf
else -> R.style.Pdc_2018
}
}
Expand All @@ -42,6 +44,7 @@ class Styler @Inject constructor(private val prefs: SharedPreferences, private v
R.style.Pdc_2018 -> Style.BDO_2018.style
R.style.Bdo_2018 -> Style.PDC.style
R.style.Pdc -> Style.BDO.style
R.style.Bdo -> Style.PCF.style
else -> Style.PDC_2018.style
}
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -139,6 +139,7 @@
<string name="archive_notif_title">Nieuwe stats, gemiddeldes en hiscores aan het berekenen</string>

<!-- Specific -->
<string name="pcf_match">Players Championship Finales</string>
<string name="bdo_match">BDO World Cup - halve finales</string>
<string name="pdc_match">PDC World Cup - halve finales</string>

Expand Down
1 change: 1 addition & 0 deletions android/DartsScorecard/app/src/main/res/values/strings.xml
Original file line number Diff line number Diff line change
Expand Up @@ -138,6 +138,7 @@
<string name="archive_notif_title">Calculating new stats, averages &amp; hiscores</string>

<!-- Specific -->
<string name="pcf_match">Players Championship Finals</string>
<string name="bdo_match">BDO World Cup - semi finals</string>
<string name="pdc_match">PDC World Cup - semi finals</string>

Expand Down
54 changes: 54 additions & 0 deletions android/DartsScorecard/app/src/main/res/values/styles_pcf_2018.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,54 @@
<?xml version="1.0" encoding="utf-8"?>
<resources>

<color name="pcf_primaryDark">#04875C</color>
<color name="pcf_green">#07D290</color>
<color name="pcf_black">#0F0D12</color>
<color name="pcf_white">#FFFFFF</color>
<color name="pcf_light_gray">#BBC7C7</color>
<color name="pcf_dark_gray">#747B77</color>
<color name="pcf_light_green">#F2FAF1</color>
<color name="pcf_dark_green">#E6F5E6</color>

<style name="Pcf" parent="AppTheme">
<item name="colorPrimary">@color/pcf_green</item>
<item name="colorPrimaryDark">@color/pcf_primaryDark</item>
<item name="colorEditProfile">@color/pcf_primaryDark</item>
<item name="gradient_angle">135</item>
<item name="match_description">@string/pcf_match</item>
<item name="colorAccent">@color/pcf_green</item>
<item name="highlightColor">@android:color/transparent</item>
<item name="statBorderColor">@color/pcf_black</item>
<item name="colorOneEighty">@color/bdo_gray_light</item>
<item name="colorNineDart">@color/black</item>
<item name="launchText">@color/pcf_light_green</item>
<item name="nameText">@color/white</item>
<item name="scoreText">@color/white</item>
<item name="ptsText">@color/black</item>
<item name="scoreBorderColor">@color/pcf_black</item>
<item name="scoreBorderAlpha">0.2</item>
<item name="inputToggle">@color/bdo_yellow_accent</item>
<item name="grad_score_header_start">@color/pcf_black</item>
<item name="grad_score_header_stop">@color/pcf_black</item>
<item name="grad_score_footer_start">@color/pcf_black</item>
<item name="grad_score_footer_stop">@color/pcf_black</item>
<item name="grad_score_name_start">@color/pcf_light_gray</item>
<item name="grad_score_name_stop">@color/pcf_dark_gray</item>
<item name="grad_score_start">@color/pcf_light_gray</item>
<item name="grad_score_stop">@color/pcf_dark_gray</item>
<item name="grad_score_pts_start">@color/pcf_light_green</item>
<item name="grad_score_pts_stop">@color/pcf_dark_green</item>
<item name="grad_score_hint_start">@color/pcf_green</item>
<item name="grad_score_hint_stop">@color/pcf_green</item>
<item name="grad_score_nine_start">@color/pcf_green</item>
<item name="grad_score_nine_stop">@color/pcf_green</item>
<item name="grad_current_start">@color/pcf_green</item>
<item name="grad_current_stop">@color/pcf_green</item>
<item name="grad_launch_btn_start">@color/pcf_green</item>
<item name="grad_launch_btn_stop">@color/pcf_green</item>
<item name="grad_score_starter_start">@color/pcf_green</item>
<item name="grad_score_starter_stop">@color/pcf_green</item>
<item name="header_text_color">@color/pcf_white</item>
</style>

</resources>

0 comments on commit 1f6e8a1

Please sign in to comment.