Finished dark theme and added black theme.

captchafix
Florens Douwes 11 years ago
parent 223b56ad1c
commit 7f7a90aa80
  1. 2
      Clover/app/src/main/java/org/floens/chan/ChanApplication.java
  2. 53
      Clover/app/src/main/java/org/floens/chan/core/model/Post.java
  3. 11
      Clover/app/src/main/java/org/floens/chan/core/model/PostLinkable.java
  4. 1
      Clover/app/src/main/java/org/floens/chan/ui/activity/BaseActivity.java
  5. 10
      Clover/app/src/main/java/org/floens/chan/ui/activity/BoardActivity.java
  6. 8
      Clover/app/src/main/java/org/floens/chan/ui/activity/SettingsActivity.java
  7. 2
      Clover/app/src/main/java/org/floens/chan/ui/fragment/SettingsFragment.java
  8. 2
      Clover/app/src/main/java/org/floens/chan/ui/fragment/ThreadFragment.java
  9. 60
      Clover/app/src/main/java/org/floens/chan/ui/view/PostView.java
  10. 44
      Clover/app/src/main/java/org/floens/chan/utils/ThemeHelper.java
  11. 2
      Clover/app/src/main/res/layout/board_edit_item.xml
  12. 11
      Clover/app/src/main/res/values/attrs.xml
  13. 64
      Clover/app/src/main/res/values/styles.xml

@ -35,6 +35,7 @@ import org.floens.chan.core.net.BitmapLruImageCache;
import org.floens.chan.database.DatabaseManager; import org.floens.chan.database.DatabaseManager;
import org.floens.chan.service.WatchService; import org.floens.chan.service.WatchService;
import org.floens.chan.utils.IconCache; import org.floens.chan.utils.IconCache;
import org.floens.chan.utils.ThemeHelper;
import java.lang.reflect.Field; import java.lang.reflect.Field;
@ -46,6 +47,7 @@ public class ChanApplication extends Application implements PinListener {
private static PinnedManager pinnedManager; private static PinnedManager pinnedManager;
private static ReplyManager replyManager; private static ReplyManager replyManager;
private static DatabaseManager databaseManager; private static DatabaseManager databaseManager;
private static ThemeHelper themeHelper;
public ChanApplication() { public ChanApplication() {
instance = this; instance = this;

@ -20,8 +20,6 @@ package org.floens.chan.core.model;
import android.graphics.Color; import android.graphics.Color;
import android.text.SpannableString; import android.text.SpannableString;
import android.text.TextUtils; import android.text.TextUtils;
import android.text.style.AbsoluteSizeSpan;
import android.text.style.BackgroundColorSpan;
import android.text.style.ForegroundColorSpan; import android.text.style.ForegroundColorSpan;
import org.floens.chan.chan.ChanUrls; import org.floens.chan.chan.ChanUrls;
@ -83,16 +81,17 @@ public class Post {
public List<Integer> repliesFrom = new ArrayList<Integer>(); public List<Integer> repliesFrom = new ArrayList<Integer>();
public final ArrayList<PostLinkable> linkables = new ArrayList<PostLinkable>(); public final ArrayList<PostLinkable> linkables = new ArrayList<PostLinkable>();
/**
* The PostView the Post is currently bound to.
*/
public boolean parsedSpans = false;
public SpannableString subjectSpan; public SpannableString subjectSpan;
public SpannableString nameSpan; public SpannableString nameSpan;
public SpannableString tripcodeSpan; public SpannableString tripcodeSpan;
public SpannableString idSpan; public SpannableString idSpan;
public SpannableString capcodeSpan; public SpannableString capcodeSpan;
/**
* The PostView the Post is currently bound to.
*/
private PostView linkableListener; private PostView linkableListener;
private String rawComment; private String rawComment;
@ -156,53 +155,9 @@ public class Post {
e.printStackTrace(); e.printStackTrace();
} }
parseSpans();
return true; return true;
} }
private void parseSpans() {
if (!TextUtils.isEmpty(subject)) {
subjectSpan = new SpannableString(subject);
subjectSpan.setSpan(new ForegroundColorSpan(Color.argb(255, 15, 12, 93)), 0, subjectSpan.length(), 0);
}
if (!TextUtils.isEmpty(name)) {
nameSpan = new SpannableString(name);
nameSpan.setSpan(new ForegroundColorSpan(Color.argb(255, 17, 119, 67)), 0, nameSpan.length(), 0);
}
if (!TextUtils.isEmpty(tripcode)) {
tripcodeSpan = new SpannableString(tripcode);
tripcodeSpan.setSpan(new ForegroundColorSpan(Color.argb(255, 17, 119, 67)), 0, tripcodeSpan.length(), 0);
tripcodeSpan.setSpan(new AbsoluteSizeSpan(10, true), 0, tripcodeSpan.length(), 0);
}
if (!TextUtils.isEmpty(id)) {
idSpan = new SpannableString(" ID: " + id + " ");
// Stolen from the 4chan extension
int hash = id.hashCode();
int r = (hash >> 24) & 0xff;
int g = (hash >> 16) & 0xff;
int b = (hash >> 8) & 0xff;
int idColor = (0xff << 24) + (r << 16) + (g << 8) + b;
int idBgColor = ((r * 0.299f) + (g * 0.587f) + (b * 0.114f)) > 125f ? 0xff636363 : 0x00000000;
idSpan.setSpan(new ForegroundColorSpan(idColor), 0, idSpan.length(), 0);
idSpan.setSpan(new BackgroundColorSpan(idBgColor), 0, idSpan.length(), 0);
idSpan.setSpan(new AbsoluteSizeSpan(10, true), 0, idSpan.length(), 0);
}
if (!TextUtils.isEmpty(capcode)) {
capcodeSpan = new SpannableString("Capcode: " + capcode);
capcodeSpan.setSpan(new ForegroundColorSpan(Color.argb(255, 255, 0, 0)), 0, capcodeSpan.length(), 0);
capcodeSpan.setSpan(new AbsoluteSizeSpan(10, true), 0, capcodeSpan.length(), 0);
}
}
private CharSequence parseComment(String commentRaw, boolean simpleMode) { private CharSequence parseComment(String commentRaw, boolean simpleMode) {
if (simpleMode) if (simpleMode)
return ""; return "";

@ -17,11 +17,12 @@
*/ */
package org.floens.chan.core.model; package org.floens.chan.core.model;
import android.graphics.Color;
import android.text.TextPaint; import android.text.TextPaint;
import android.text.style.ClickableSpan; import android.text.style.ClickableSpan;
import android.view.View; import android.view.View;
import org.floens.chan.utils.ThemeHelper;
/** /**
* Anything that links to something in a post uses this entity. * Anything that links to something in a post uses this entity.
*/ */
@ -30,8 +31,6 @@ public class PostLinkable extends ClickableSpan {
QUOTE, LINK, SPOILER QUOTE, LINK, SPOILER
} }
;
public final Post post; public final Post post;
public final String key; public final String key;
public final String value; public final String value;
@ -54,11 +53,11 @@ public class PostLinkable extends ClickableSpan {
@Override @Override
public void updateDrawState(TextPaint ds) { public void updateDrawState(TextPaint ds) {
if (type == Type.QUOTE || type == Type.LINK) { if (type == Type.QUOTE || type == Type.LINK) {
ds.setColor(type == Type.QUOTE ? Color.argb(255, 221, 0, 0) : Color.argb(255, 0, 0, 180)); ds.setColor(type == Type.QUOTE ? ThemeHelper.getInstance().getQuoteColor() : ThemeHelper.getInstance().getLinkColor());
ds.setUnderlineText(true); ds.setUnderlineText(true);
} else if (type == Type.SPOILER) { } else if (type == Type.SPOILER) {
ds.setColor(0x00000000); ds.setColor(ThemeHelper.getInstance().getSpoilerColor());
ds.bgColor = 0xff000000; ds.bgColor = ThemeHelper.getInstance().getSpoilerColor();
ds.setUnderlineText(false); ds.setUnderlineText(false);
} }
} }

@ -90,6 +90,7 @@ public abstract class BaseActivity extends Activity implements PanelSlideListene
super.onCreate(savedInstanceState); super.onCreate(savedInstanceState);
ThemeHelper.setTheme(this); ThemeHelper.setTheme(this);
ThemeHelper.getInstance().reloadPostViewColors(this);
setContentView(R.layout.activity_base); setContentView(R.layout.activity_base);

@ -48,17 +48,21 @@ import org.floens.chan.utils.Utils;
import java.util.List; import java.util.List;
public class BoardActivity extends BaseActivity implements ActionBar.OnNavigationListener { public class BoardActivity extends BaseActivity implements ActionBar.OnNavigationListener {
private Loadable boardLoadable = new Loadable(); private Loadable boardLoadable;
private Loadable threadLoadable = new Loadable(); private Loadable threadLoadable;
private ThreadFragment boardFragment; private ThreadFragment boardFragment;
private ThreadFragment threadFragment; private ThreadFragment threadFragment;
private boolean actionBarSetToListNavigation = false; private boolean actionBarSetToListNavigation;
@Override @Override
protected void onCreate(Bundle savedInstanceState) { protected void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState); super.onCreate(savedInstanceState);
actionBarSetToListNavigation = false;
boardLoadable = new Loadable();
threadLoadable = new Loadable();
boardFragment = ThreadFragment.newInstance(this); boardFragment = ThreadFragment.newInstance(this);
threadFragment = ThreadFragment.newInstance(this); threadFragment = ThreadFragment.newInstance(this);

@ -22,7 +22,6 @@ import android.content.Intent;
import android.os.Bundle; import android.os.Bundle;
import org.floens.chan.ui.fragment.SettingsFragment; import org.floens.chan.ui.fragment.SettingsFragment;
import org.floens.chan.utils.Logger;
import org.floens.chan.utils.ThemeHelper; import org.floens.chan.utils.ThemeHelper;
public class SettingsActivity extends Activity { public class SettingsActivity extends Activity {
@ -34,7 +33,7 @@ public class SettingsActivity extends Activity {
super.onCreate(savedInstanceState); super.onCreate(savedInstanceState);
if (!doingThemeRestart) { if (!doingThemeRestart) {
lastTheme = ThemeHelper.getTheme(); lastTheme = ThemeHelper.getInstance().getTheme();
} }
ThemeHelper.setTheme(this); ThemeHelper.setTheme(this);
@ -58,9 +57,8 @@ public class SettingsActivity extends Activity {
if (doingThemeRestart) { if (doingThemeRestart) {
doingThemeRestart = false; doingThemeRestart = false;
} else { } else {
if (ThemeHelper.getTheme() != lastTheme) { if (ThemeHelper.getInstance().getTheme() != lastTheme) {
lastTheme = ThemeHelper.getTheme(); lastTheme = ThemeHelper.getInstance().getTheme();
Logger.test("THEME CHANGED!");
Intent intent = new Intent(this, BoardActivity.class); Intent intent = new Intent(this, BoardActivity.class);
intent.setFlags(Intent.FLAG_ACTIVITY_NEW_TASK | Intent.FLAG_ACTIVITY_CLEAR_TASK); intent.setFlags(Intent.FLAG_ACTIVITY_NEW_TASK | Intent.FLAG_ACTIVITY_CLEAR_TASK);

@ -107,7 +107,7 @@ public class SettingsFragment extends PreferenceFragment {
updateThemeSummary(theme, newValue.toString()); updateThemeSummary(theme, newValue.toString());
// Thanks! https://github.com/CyanogenMod/android_packages_apps_Calculator/blob/cm-10.2/src/com/android/calculator2/view/PreferencesFragment.java // Thanks! https://github.com/CyanogenMod/android_packages_apps_Calculator/blob/cm-10.2/src/com/android/calculator2/view/PreferencesFragment.java
if (!newValue.toString().equals(ThemeHelper.getTheme().name)) { if (!newValue.toString().equals(ThemeHelper.getInstance().getTheme().name)) {
Intent intent = new Intent(getActivity(), SettingsActivity.class); Intent intent = new Intent(getActivity(), SettingsActivity.class);
intent.putExtra("pos", getListView().getFirstVisiblePosition()); intent.putExtra("pos", getListView().getFirstVisiblePosition());

@ -106,6 +106,8 @@ public class ThreadFragment extends Fragment implements ThreadManager.ThreadMana
if (threadManager != null) { if (threadManager != null) {
threadManager.onDestroy(); threadManager.onDestroy();
} }
threadManager = null;
loadable = null;
} }
@Override @Override

@ -21,7 +21,6 @@ import android.app.Activity;
import android.content.Context; import android.content.Context;
import android.content.res.Resources; import android.content.res.Resources;
import android.content.res.TypedArray; import android.content.res.TypedArray;
import android.graphics.Color;
import android.text.Layout; import android.text.Layout;
import android.text.Selection; import android.text.Selection;
import android.text.Spannable; import android.text.Spannable;
@ -30,6 +29,7 @@ import android.text.TextUtils;
import android.text.format.DateUtils; import android.text.format.DateUtils;
import android.text.method.LinkMovementMethod; import android.text.method.LinkMovementMethod;
import android.text.style.AbsoluteSizeSpan; import android.text.style.AbsoluteSizeSpan;
import android.text.style.BackgroundColorSpan;
import android.text.style.ClickableSpan; import android.text.style.ClickableSpan;
import android.text.style.ForegroundColorSpan; import android.text.style.ForegroundColorSpan;
import android.util.AttributeSet; import android.util.AttributeSet;
@ -83,6 +83,7 @@ public class PostView extends LinearLayout implements View.OnClickListener, View
private int savedReplyColor; private int savedReplyColor;
private int highlightedColor; private int highlightedColor;
private int replyCountColor; private int replyCountColor;
private int dateColor;
/** /**
* Represents a post. Use setPost(Post ThreadManager) to fill it with data. * Represents a post. Use setPost(Post ThreadManager) to fill it with data.
@ -121,6 +122,13 @@ public class PostView extends LinearLayout implements View.OnClickListener, View
this.post = post; this.post = post;
this.manager = manager; this.manager = manager;
post.setLinkableListener(null);
if (!post.parsedSpans) {
post.parsedSpans = true;
parseSpans(post);
}
buildView(context); buildView(context);
if (post.hasImage) { if (post.hasImage) {
@ -157,7 +165,7 @@ public class PostView extends LinearLayout implements View.OnClickListener, View
DateUtils.SECOND_IN_MILLIS, 0); DateUtils.SECOND_IN_MILLIS, 0);
SpannableString date = new SpannableString("No." + post.no + " " + relativeTime); SpannableString date = new SpannableString("No." + post.no + " " + relativeTime);
date.setSpan(new ForegroundColorSpan(Color.argb(255, 100, 100, 100)), 0, date.length(), 0); date.setSpan(new ForegroundColorSpan(dateColor), 0, date.length(), 0);
date.setSpan(new AbsoluteSizeSpan(10, true), 0, date.length(), 0); date.setSpan(new AbsoluteSizeSpan(10, true), 0, date.length(), 0);
total = TextUtils.concat(total, date, " "); total = TextUtils.concat(total, date, " ");
@ -261,6 +269,54 @@ public class PostView extends LinearLayout implements View.OnClickListener, View
savedReplyColor = ta.getColor(R.styleable.PostView_saved_reply_color, 0); savedReplyColor = ta.getColor(R.styleable.PostView_saved_reply_color, 0);
highlightedColor = ta.getColor(R.styleable.PostView_highlighted_color, 0); highlightedColor = ta.getColor(R.styleable.PostView_highlighted_color, 0);
replyCountColor = ta.getColor(R.styleable.PostView_reply_count_color, 0); replyCountColor = ta.getColor(R.styleable.PostView_reply_count_color, 0);
dateColor = ta.getColor(R.styleable.PostView_date_color, 0);
ta.recycle();
}
private void parseSpans(Post post) {
TypedArray ta = context.obtainStyledAttributes(null, R.styleable.PostView, R.attr.post_style, 0);
if (!TextUtils.isEmpty(post.subject)) {
post.subjectSpan = new SpannableString(post.subject);
post.subjectSpan.setSpan(new ForegroundColorSpan(ta.getColor(R.styleable.PostView_subject_color, 0)), 0, post.subjectSpan.length(), 0);
}
if (!TextUtils.isEmpty(post.name)) {
post.nameSpan = new SpannableString(post.name);
post.nameSpan.setSpan(new ForegroundColorSpan(ta.getColor(R.styleable.PostView_name_color, 0)), 0, post.nameSpan.length(), 0);
}
if (!TextUtils.isEmpty(post.tripcode)) {
post.tripcodeSpan = new SpannableString(post.tripcode);
post.tripcodeSpan.setSpan(new ForegroundColorSpan(ta.getColor(R.styleable.PostView_name_color, 0)), 0, post.tripcodeSpan.length(), 0);
post.tripcodeSpan.setSpan(new AbsoluteSizeSpan(10, true), 0, post.tripcodeSpan.length(), 0);
}
if (!TextUtils.isEmpty(post.id)) {
post.idSpan = new SpannableString(" ID: " + post.id + " ");
// Stolen from the 4chan extension
int hash = post.id.hashCode();
int r = (hash >> 24) & 0xff;
int g = (hash >> 16) & 0xff;
int b = (hash >> 8) & 0xff;
int idColor = (0xff << 24) + (r << 16) + (g << 8) + b;
boolean lightColor = (r * 0.299f) + (g * 0.587f) + (b * 0.114f) > 125f;
int idBgColor = lightColor ? ta.getColor(R.styleable.PostView_id_background_light, 0) : ta.getColor(R.styleable.PostView_id_background_dark, 0);
post.idSpan.setSpan(new ForegroundColorSpan(idColor), 0, post.idSpan.length(), 0);
post.idSpan.setSpan(new BackgroundColorSpan(idBgColor), 0, post.idSpan.length(), 0);
post.idSpan.setSpan(new AbsoluteSizeSpan(10, true), 0, post.idSpan.length(), 0);
}
if (!TextUtils.isEmpty(post.capcode)) {
post.capcodeSpan = new SpannableString("Capcode: " + post.capcode);
post.capcodeSpan.setSpan(new ForegroundColorSpan(ta.getColor(R.styleable.PostView_capcode_color, 0)), 0, post.capcodeSpan.length(), 0);
post.capcodeSpan.setSpan(new AbsoluteSizeSpan(10, true), 0, post.capcodeSpan.length(), 0);
}
ta.recycle(); ta.recycle();
} }

@ -1,6 +1,8 @@
package org.floens.chan.utils; package org.floens.chan.utils;
import android.app.Activity; import android.app.Activity;
import android.content.Context;
import android.content.res.TypedArray;
import org.floens.chan.R; import org.floens.chan.R;
import org.floens.chan.core.ChanPreferences; import org.floens.chan.core.ChanPreferences;
@ -9,7 +11,7 @@ public class ThemeHelper {
public enum Theme { public enum Theme {
LIGHT("light", R.style.AppTheme), LIGHT("light", R.style.AppTheme),
DARK("dark", R.style.AppTheme_Dark), DARK("dark", R.style.AppTheme_Dark),
BLACK("black", R.style.AppTheme_Dark); BLACK("black", R.style.AppTheme_Dark_Black);
public String name; public String name;
public int resValue; public int resValue;
@ -20,11 +22,27 @@ public class ThemeHelper {
} }
} }
private static ThemeHelper instance;
private int quoteColor;
private int linkColor;
private int spoilerColor;
public static ThemeHelper getInstance() {
if (instance == null) {
instance = new ThemeHelper();
}
return instance;
}
public static void setTheme(Activity activity) { public static void setTheme(Activity activity) {
activity.setTheme(getTheme().resValue); activity.setTheme(ThemeHelper.getInstance().getTheme().resValue);
}
public ThemeHelper() {
} }
public static Theme getTheme() { public Theme getTheme() {
String themeName = ChanPreferences.getTheme(); String themeName = ChanPreferences.getTheme();
Theme theme = null; Theme theme = null;
@ -38,4 +56,24 @@ public class ThemeHelper {
return theme; return theme;
} }
public void reloadPostViewColors(Context context) {
TypedArray ta = context.obtainStyledAttributes(null, R.styleable.PostView, R.attr.post_style, 0);
quoteColor = ta.getColor(R.styleable.PostView_quote_color, 0);
linkColor = ta.getColor(R.styleable.PostView_link_color, 0);
spoilerColor = ta.getColor(R.styleable.PostView_spoiler_color, 0);
ta.recycle();
}
public int getQuoteColor() {
return quoteColor;
}
public int getLinkColor() {
return linkColor;
}
public int getSpoilerColor() {
return spoilerColor;
}
} }

@ -12,7 +12,7 @@
android:paddingBottom="12dp" android:paddingBottom="12dp"
android:paddingLeft="16dp" android:paddingLeft="16dp"
android:paddingTop="12dp" android:paddingTop="12dp"
android:color="#77111111" /> style="?attr/board_edit_item_style"/>
<TextView <TextView
android:id="@+id/text" android:id="@+id/text"

@ -27,5 +27,16 @@
<attr name="saved_reply_color" format="color"/> <attr name="saved_reply_color" format="color"/>
<attr name="highlighted_color" format="color"/> <attr name="highlighted_color" format="color"/>
<attr name="reply_count_color" format="color"/> <attr name="reply_count_color" format="color"/>
<attr name="name_color" format="color"/>
<attr name="subject_color" format="color"/>
<attr name="date_color" format="color"/>
<attr name="quote_color" format="color"/>
<attr name="link_color" format="color"/>
<attr name="spoiler_color" format="color"/>
<attr name="capcode_color" format="color"/>
<attr name="id_background_light" format="color"/>
<attr name="id_background_dark" format="color"/>
</declare-styleable> </declare-styleable>
<attr name="board_edit_item_style" format="reference"/>
</resources> </resources>

@ -9,14 +9,20 @@
<color name="image_list_background">#88000000</color> <color name="image_list_background">#88000000</color>
<!-- Light theme -->
<style name="AppTheme" parent="android:Theme.Holo.Light.DarkActionBar"> <style name="AppTheme" parent="android:Theme.Holo.Light.DarkActionBar">
<item name="board_pane_style">@style/BoardPane</item> <item name="board_pane_style">@style/BoardPane</item>
<item name="board_pane_left_style">@style/BoardLeftPane</item> <item name="board_pane_left_style">@style/BoardLeftPane</item>
<item name="board_pane_right_style">@style/BoardRightPane</item> <item name="board_pane_right_style">@style/BoardRightPane</item>
<item name="post_style">@style/PostView</item> <item name="post_style">@style/PostView</item>
<item name="board_edit_item_style">@style/BoardEditItem</item>
</style> </style>
<!-- Dark theme -->
<style name="AppTheme.Dark" parent="android:Theme.Holo"> <style name="AppTheme.Dark" parent="android:Theme.Holo">
<item name="android:actionBarStyle">@android:style/Widget.Holo.ActionBar.Solid</item> <item name="android:actionBarStyle">@android:style/Widget.Holo.ActionBar.Solid</item>
@ -25,8 +31,22 @@
<item name="board_pane_right_style">@style/BoardRightPane.Dark</item> <item name="board_pane_right_style">@style/BoardRightPane.Dark</item>
<item name="post_style">@style/PostView.Dark</item> <item name="post_style">@style/PostView.Dark</item>
<item name="board_edit_item_style">@style/BoardEditItem.Dark</item>
</style>
<!-- Black theme -->
<style name="AppTheme.Dark.Black">
<item name="android:actionBarStyle">@android:style/Widget.Holo.ActionBar</item>
<item name="board_pane_style">@style/BoardPane.Dark.Black</item>
<item name="board_pane_left_style">@style/BoardLeftPane.Dark.Black</item>
<item name="board_pane_right_style">@style/BoardRightPane.Dark.Black</item>
</style> </style>
<!-- Light styles -->
<style name="BoardPane"> <style name="BoardPane">
<item name="fade_color">#CCE5E5E5</item> <item name="fade_color">#CCE5E5E5</item>
</style> </style>
@ -44,9 +64,23 @@
<item name="saved_reply_color">#FFBCBCBC</item> <item name="saved_reply_color">#FFBCBCBC</item>
<item name="highlighted_color">#FFD6BAD0</item> <item name="highlighted_color">#FFD6BAD0</item>
<item name="reply_count_color">#FF646464</item> <item name="reply_count_color">#FF646464</item>
<item name="name_color">#ff117743</item>
<item name="subject_color">#ff0F0C5D</item>
<item name="date_color">#ff646464</item>
<item name="quote_color">#ffDD0000</item>
<item name="link_color">#ff0000B4</item>
<item name="spoiler_color">#ff000000</item>
<item name="capcode_color">#ffff0000</item>
<item name="id_background_light">#ff636363</item>
<item name="id_background_dark">#00000000</item>
</style>
<style name="BoardEditItem">
<item name="android:color">#ff4c4c4c</item>
</style> </style>
<!-- Dark styles -->
<style name="BoardPane.Dark"> <style name="BoardPane.Dark">
<item name="fade_color">#a5323232</item> <item name="fade_color">#a5323232</item>
</style> </style>
@ -61,8 +95,32 @@
<style name="PostView.Dark"> <style name="PostView.Dark">
<item name="thumbnail_background">#00000000</item> <item name="thumbnail_background">#00000000</item>
<item name="saved_reply_color">#ff5c5c5c</item> <item name="saved_reply_color">#ff5C5C5C</item>
<item name="highlighted_color">#ff858585</item> <item name="highlighted_color">#ff444444</item>
<item name="reply_count_color">#ff737373</item> <item name="reply_count_color">#ff9f9f9f</item>
<item name="subject_color">#ff625cff</item>
<item name="date_color">#ff9f9f9f</item>
<item name="link_color">#ff625cff</item>
<item name="spoiler_color">#ff000000</item>
<item name="id_background_light">#00000000</item>
<item name="id_background_dark">#ffC6C6C6</item>
</style>
<style name="BoardEditItem.Dark">
<item name="android:color">#77ffffff</item>
</style>
<!-- Black styles -->
<style name="BoardPane.Dark.Black">
<item name="fade_color">#a51a1a1a</item>
</style>
<style name="BoardLeftPane.Dark.Black">
<item name="android:background">#ff000000</item>
</style>
<style name="BoardRightPane.Dark.Black">
<item name="android:background">#ff000000</item>
</style> </style>
</resources> </resources>

Loading…
Cancel
Save