1
0
mirror of https://github.com/KokaKiwi/BarInsta synced 2024-11-22 22:57:29 +00:00

bibliogram theme, translation setup

This commit is contained in:
Austin Huang 2020-09-15 20:18:23 -04:00
parent 841f61f6cf
commit 7ac9c965e3
No known key found for this signature in database
GPG Key ID: 84C23AA04587A91F
5 changed files with 41 additions and 9 deletions

View File

@ -69,6 +69,8 @@ public final class LocaleUtils {
if (appLanguageIndex == 8) return "pl";
if (appLanguageIndex == 9) return "tr";
if (appLanguageIndex == 10) return "pt";
if (appLanguageIndex == 11) return "fa";
if (appLanguageIndex == 12) return "mk";
return null;
}

View File

@ -3,15 +3,17 @@
<string-array name="languages">
<item>System Default</item>
<item>English</item>
<item>French [Thanks to @kernoeb (Telegram)]</item>
<item>Spanish [Thanks to @sguinetti (GitLab)]</item>
<item>French [Thanks to @kernoeb]</item>
<item>Spanish [Thanks to @sguinetti]</item>
<item>Chinese Simplified</item>
<item>Indonesian [Thanks to @Galang23 (GitLab)]</item>
<item>Italian [Thanks to @RAR_Ramar (Telegram)]</item>
<item>German [Thanks to @peterge1998 (GitHub)]</item>
<item>Polish [Thanks to @Lego8486 (GitHub)]</item>
<item>Turkish [Thanks to @faydin90 (Telegram)]</item>
<item>Brazilian Portuguese [Thanks to @wagnim (GitHub)]</item>
<item>Indonesian [Thanks to @Galang23]</item>
<item>Italian [Thanks to @RAR_Ramar]</item>
<item>German [Thanks to @peterge1998]</item>
<item>Polish [Thanks to @Lego8486]</item>
<item>Turkish [Thanks to @faydin90]</item>
<item>Brazilian Portuguese [Thanks to @wagnim]</item>
<item>Persian [Thanks to @farzadx]</item>
<item>Macedonian [Thanks to @snajdovski]</item>
</string-array>
<string-array name="languages_values">
<item>0</item>
@ -120,10 +122,12 @@
<string-array name="light_themes">
<item>@string/light_white_theme</item>
<item>@string/light_barinsta_theme</item>
<item>@string/light_bibliogram_theme</item>
</string-array>
<string-array name="light_theme_values">
<item>@style/AppTheme.Light.White</item>
<item>@style/AppTheme.Light.Barinsta</item>
<item>@style/AppTheme.Light.Bibliogram</item>
</string-array>
<string-array name="dark_themes">
<item>@string/dark_black_theme</item>

View File

@ -94,4 +94,14 @@
<color name="barinstaColorSecondaryDark">#a17c4f</color>
<color name="barinstaPrimaryTextColor">#616161</color>
<color name="barinstaSecondaryTextColor">@color/white</color>
<!-- Bibliogram Theme colors -->
<color name="bibliogramColorPrimary">#d63f44</color>
<color name="bibliogramColorPrimaryLight">#fff4e8</color>
<color name="bibliogramColorPrimaryDark">#8e2929</color>
<color name="bibliogramColorSecondary">#d63f44</color>
<color name="bibliogramColorSecondaryLight">#fff4e8</color>
<color name="bibliogramColorSecondaryDark">#8e2929</color>
<color name="bibliogramPrimaryTextColor">#000000</color>
<color name="bibliogramSecondaryTextColor">@color/white</color>
</resources>

View File

@ -281,6 +281,7 @@
<string name="dark_black_theme">Black</string>
<string name="light_theme_settings">Light theme</string>
<string name="dark_theme_settings">Dark theme</string>
<string name="light_barinsta_theme">Barinsta</string>
<string name="light_barinsta_theme" comment="Yes, this one is Barista (the theme), you can also substitute it with other coffee-related words">Barista</string>
<string name="light_bibliogram_theme" translatable="false">Bibliogram</string>
<string name="dark_material_dark_theme">Material Dark</string>
</resources>

View File

@ -55,6 +55,21 @@
<item name="toolbarStyle">@style/Widget.MaterialComponents.Toolbar.Light.Barinsta</item>
</style>
<style name="AppTheme.Light.Bibliogram" parent="AppTheme.Light">
<item name="colorPrimary">@color/bibliogramColorPrimary</item>
<item name="colorPrimaryDark">@color/bibliogramColorPrimaryDark</item>
<item name="colorPrimaryVariant">@color/bibliogramColorPrimaryLight</item>
<item name="colorSecondary">@color/bibliogramColorSecondary</item>
<item name="colorSecondaryVariant">@color/bibliogramColorSecondaryDark</item>
<item name="colorSurface">@color/grey_200</item>
<item name="colorControlHighlight">@color/bibliogramColorSecondaryDark</item>
<item name="colorAccent">@color/bibliogramColorSecondaryDark</item>
<item name="android:windowBackground">?colorSurface</item>
<item name="bottomNavigationStyle">@style/Widget.BottomNavigationView.Light.Barinsta</item>
<item name="android:textColorPrimary">@color/bibliogramPrimaryTextColor</item>
<item name="toolbarStyle">@style/Widget.MaterialComponents.Toolbar.Light.Barinsta</item>
</style>
<!-- Dark Themes -->
<style name="AppTheme.Dark" parent="Theme.MaterialComponents.NoActionBar">