Skip to content

Commit

Permalink
Adjustments to #706
Browse files Browse the repository at this point in the history
  • Loading branch information
Adamantcheese committed Mar 7, 2020
1 parent 30f6b97 commit c5ec5c1
Showing 1 changed file with 4 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -681,11 +681,13 @@ private void setOther(Loadable loadable, PostImage image) {

public void toggleTransparency() {
transparentBackground = !transparentBackground;
final int BACKGROUND_COLOR_SFW = Color.argb(255, 211, 217, 241);
// these colors are specific to 4chan for the time being
final int BACKGROUND_COLOR_SFW = Color.argb(255, 214, 218, 240);
final int BACKGROUND_COLOR_SFW_OP = Color.argb(255, 238, 242, 255);
final int BACKGROUND_COLOR_NSFW = Color.argb(255, 240, 224, 214);
final int BACKGROUND_COLOR_NSFW_OP = Color.argb(255, 255, 255, 238);
int boardColor = callback.getLoadable().board.workSafe
? BACKGROUND_COLOR_SFW
? (op ? BACKGROUND_COLOR_SFW_OP : BACKGROUND_COLOR_SFW)
: (op ? BACKGROUND_COLOR_NSFW_OP : BACKGROUND_COLOR_NSFW);
View activeView = getActiveView();
if (!(activeView instanceof CustomScaleImageView || activeView instanceof GifImageView)) return;
Expand Down

0 comments on commit c5ec5c1

Please sign in to comment.