Skip to content
This repository has been archived by the owner on Sep 25, 2021. It is now read-only.

Commit

Permalink
Added Gruvbox Light/Dark Themes (#329)
Browse files Browse the repository at this point in the history
Adds the gruvbox light and dark themes.
  • Loading branch information
Eric Rösch authored and floens committed Jul 15, 2017
1 parent 64b5ee1 commit 644ac17
Show file tree
Hide file tree
Showing 2 changed files with 72 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -57,6 +57,8 @@ public ThemeHelper() {
themes.add(new Theme("Yotsuba B", "yotsuba_b", R.style.Chan_Theme_YotsubaB, PrimaryColor.RED));
themes.add(new Theme("Photon", "photon", R.style.Chan_Theme_Photon, PrimaryColor.ORANGE));
themes.add(new DarkTheme("Insomnia", "insomnia", R.style.Chan_Theme_Insomnia, PrimaryColor.DARK));
themes.add(new Theme("Gruvbox Light", "gruvbox_light", R.style.Chan_Theme_GruvboxLight, PrimaryColor.BLACK));
themes.add(new DarkTheme("Gruvbox Dark", "gruvbox_dark", R.style.Chan_Theme_GruvboxDark, PrimaryColor.BLACK));

ChanSettings.ThemeColor settingTheme = ChanSettings.getThemeAndColor();
for (Theme theme : themes) {
Expand Down
70 changes: 70 additions & 0 deletions Clover/app/src/main/res/values/styles.xml
Original file line number Diff line number Diff line change
Expand Up @@ -200,6 +200,76 @@ along with this program. If not, see <http://www.gnu.org/licenses/>.
<item name="dropdown_dark_pressed_color">#ffffffff</item>
</style>

<style name="Chan.Theme.GruvboxLight" parent="Chan.Theme">
<item name="colorAccent">#3c3836</item>

<item name="backcolor">#fbf1c7</item>
<item name="backcolor_secondary">#ebdbb2</item>

<item name="android:textColor">#3c3836</item>
<item name="text_color_primary">#3c3836</item>
<item name="text_color_secondary">#504945</item>
<item name="text_color_hint">#665c54</item>
<item name="text_color_reveal_spoiler">#3c3836</item>

<item name="post_name_color">#689d6a</item>
<item name="post_subject_color">#076678</item>
<item name="post_details_color">#7c6f64</item>
<item name="post_quote_color">#cc241d</item>
<item name="post_highlight_quote_color">#9d0006</item>
<item name="post_inline_quote_color">#98971a</item>
<item name="post_link_color">#076678</item>
<item name="post_spoiler_color">#3c3836</item>
<item name="post_capcode_color">#cc241d</item>
<item name="post_last_seen_color">#cc241d</item>

<item name="post_id_background_light">#3c3836</item>
<item name="post_saved_reply_color">#ebdbb2</item>
<item name="post_highlighted_color">#ebdbb2</item>
<item name="post_selected_color">#ebdbb2</item>

<item name="divider_color">#ebdbb2</item>
<item name="divider_split_color">#ebdbb2</item>

<item name="dropdown_dark_color">#736f5b</item>
<item name="dropdown_dark_pressed_color">#736f5b</item>
</style>

<style name="Chan.Theme.GruvboxDark" parent="Chan.Theme.Dark">
<item name="colorAccent">#ebdbb2</item>

<item name="backcolor">#282828</item>
<item name="backcolor_secondary">#3c3836</item>

<item name="android:textColor">#ebdbb2</item>
<item name="text_color_primary">#ebdbb2</item>
<item name="text_color_secondary">#d5c4a1</item>
<item name="text_color_hint">#bdae93</item>
<item name="text_color_reveal_spoiler">#ebdbb2</item>

<item name="post_name_color">#427b58</item>
<item name="post_subject_color">#458588</item>
<item name="post_details_color">#a89984</item>
<item name="post_quote_color">#9d0006</item>
<item name="post_highlight_quote_color">#cc241d</item>
<item name="post_inline_quote_color">#79740e</item>
<item name="post_link_color">#458588</item>
<item name="post_spoiler_color">#ebdbb2</item>
<item name="post_capcode_color">#9d0006</item>
<item name="post_last_seen_color">#9d0006</item>

<item name="post_id_background_light">#ebdbb2</item>
<item name="post_saved_reply_color">#3c3836</item>
<item name="post_highlighted_color">#3c3836</item>
<item name="post_selected_color">#3c3836</item>

<item name="divider_color">#3c3836</item>
<item name="divider_split_color">#3c3836</item>

<item name="dropdown_dark_color">#ffffff</item>
<item name="dropdown_dark_pressed_color">#ffffff</item>
</style>

<!-- For FloatingMenu -->
<style name="ToolbarDropDownListViewStyle" parent="Widget.AppCompat.ListView.DropDown">
<item name="android:background">#ffffffff</item>
Expand Down

0 comments on commit 644ac17

Please sign in to comment.