forked from signalapp/Signal-Android
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Refactor colorization to support dark theme.
// FREEBIE
- Loading branch information
Showing
32 changed files
with
836 additions
and
231 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
28 changes: 28 additions & 0 deletions
28
src/org/thoughtcrime/securesms/color/BlueGreyMaterialColor.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,28 @@ | ||
package org.thoughtcrime.securesms.color; | ||
|
||
import java.util.HashMap; | ||
|
||
class BlueGreyMaterialColor extends MaterialColor { | ||
|
||
static final String SERIALIZED_NAME = "blue_grey"; | ||
|
||
BlueGreyMaterialColor() { | ||
super(new HashMap<String, Integer>() {{ | ||
put("50", 0xFFECEFF1); | ||
put("100", 0xFFCFD8DC); | ||
put("200", 0xFFB0BEC5); | ||
put("300", 0xFF90A4AE); | ||
put("400", 0xFF78909C); | ||
put("500", 0xFF607D8B); | ||
put("600", 0xFF546E7A); | ||
put("700", 0xFF455A64); | ||
put("800", 0xFF37474F); | ||
put("900", 0xFF263238); | ||
}}); | ||
} | ||
|
||
@Override | ||
public String serialize() { | ||
return SERIALIZED_NAME; | ||
} | ||
} |
32 changes: 32 additions & 0 deletions
32
src/org/thoughtcrime/securesms/color/BlueMaterialColor.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,32 @@ | ||
package org.thoughtcrime.securesms.color; | ||
|
||
import java.util.HashMap; | ||
|
||
class BlueMaterialColor extends MaterialColor { | ||
|
||
static final String SERIALIZED_NAME = "blue"; | ||
|
||
BlueMaterialColor() { | ||
super(new HashMap<String, Integer>() {{ | ||
put("50", 0xFFE3F2FD); | ||
put("100", 0xFFBBDEFB); | ||
put("200", 0xFF90CAF9); | ||
put("300", 0xFF64B5F6); | ||
put("400", 0xFF42A5F5); | ||
put("500", 0xFF2196F3); | ||
put("600", 0xFF1E88E5); | ||
put("700", 0xFF1976D2); | ||
put("800", 0xFF1565C0); | ||
put("900", 0xFF0D47A1); | ||
put("A100", 0xFF82B1FF); | ||
put("A200", 0xFF448AFF); | ||
put("A400", 0xFF2979FF); | ||
put("A700", 0xFF2962FF); | ||
}}); | ||
} | ||
|
||
@Override | ||
public String serialize() { | ||
return SERIALIZED_NAME; | ||
} | ||
} |
28 changes: 28 additions & 0 deletions
28
src/org/thoughtcrime/securesms/color/BrownMaterialColor.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,28 @@ | ||
package org.thoughtcrime.securesms.color; | ||
|
||
import java.util.HashMap; | ||
|
||
class BrownMaterialColor extends MaterialColor { | ||
|
||
static final String SERIALIZED_NAME = "brown"; | ||
|
||
BrownMaterialColor() { | ||
super(new HashMap<String, Integer>() {{ | ||
put("50", 0xFFEFEBE9); | ||
put("100", 0xFFD7CCC8); | ||
put("200", 0xFFBCAAA4); | ||
put("300", 0xFFA1887F); | ||
put("400", 0xFF8D6E63); | ||
put("500", 0xFF795548); | ||
put("600", 0xFF6D4C41); | ||
put("700", 0xFF5D4037); | ||
put("800", 0xFF4E342E); | ||
put("900", 0xFF3E2723); | ||
}}); | ||
} | ||
|
||
@Override | ||
public String serialize() { | ||
return SERIALIZED_NAME; | ||
} | ||
} |
32 changes: 32 additions & 0 deletions
32
src/org/thoughtcrime/securesms/color/CyanMaterialColor.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,32 @@ | ||
package org.thoughtcrime.securesms.color; | ||
|
||
import java.util.HashMap; | ||
|
||
class CyanMaterialColor extends MaterialColor { | ||
|
||
static final String SERIALIZED_NAME = "cyan"; | ||
|
||
CyanMaterialColor() { | ||
super(new HashMap<String, Integer>() {{ | ||
put("50", 0xFFE0F7FA); | ||
put("100", 0xFFB2EBF2); | ||
put("200", 0xFF80DEEA); | ||
put("300", 0xFF4DD0E1); | ||
put("400", 0xFF26C6DA); | ||
put("500", 0xFF00BCD4); | ||
put("600", 0xFF00ACC1); | ||
put("700", 0xFF0097A7); | ||
put("800", 0xFF00838F); | ||
put("900", 0xFF006064); | ||
put("A100", 0xFF84FFFF); | ||
put("A200", 0xFF18FFFF); | ||
put("A400", 0xFF00E5FF); | ||
put("A700", 0xFF00B8D4); | ||
}}); | ||
} | ||
|
||
@Override | ||
public String serialize() { | ||
return SERIALIZED_NAME; | ||
} | ||
} |
32 changes: 32 additions & 0 deletions
32
src/org/thoughtcrime/securesms/color/DeepOrangeMaterialColor.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,32 @@ | ||
package org.thoughtcrime.securesms.color; | ||
|
||
import java.util.HashMap; | ||
|
||
class DeepOrangeMaterialColor extends MaterialColor { | ||
|
||
static final String SERIALIZED_NAME = "deep_orange"; | ||
|
||
DeepOrangeMaterialColor() { | ||
super(new HashMap<String, Integer>() {{ | ||
put("50", 0xFFFBE9E7); | ||
put("100", 0xFFFFCCBC); | ||
put("200", 0xFFFFAB91); | ||
put("300", 0xFFFF8A65); | ||
put("400", 0xFFFF7043); | ||
put("500", 0xFFFF5722); | ||
put("600", 0xFFF4511E); | ||
put("700", 0xFFE64A19); | ||
put("800", 0xFFD84315); | ||
put("900", 0xFFBF360C); | ||
put("A100", 0xFFFF9E80); | ||
put("A200", 0xFFFF6E40); | ||
put("A400", 0xFFFF3D00); | ||
put("A700", 0xFFDD2C00); | ||
}}); | ||
} | ||
|
||
@Override | ||
public String serialize() { | ||
return SERIALIZED_NAME; | ||
} | ||
} |
Oops, something went wrong.