diff --git a/app/src/main/java/com/keylesspalace/tusky/ComposeActivity.java b/app/src/main/java/com/keylesspalace/tusky/ComposeActivity.java
index 3f8d5cf8..c7f1524d 100644
--- a/app/src/main/java/com/keylesspalace/tusky/ComposeActivity.java
+++ b/app/src/main/java/com/keylesspalace/tusky/ComposeActivity.java
@@ -326,7 +326,9 @@ public class ComposeActivity extends BaseActivity {
actionBar.setTitle(null);
actionBar.setDisplayHomeAsUpEnabled(true);
actionBar.setDisplayShowHomeEnabled(true);
- actionBar.setHomeAsUpIndicator(R.drawable.ic_close_24dp);
+ Drawable closeIcon = ContextCompat.getDrawable(this, R.drawable.ic_close_24dp);
+ ThemeUtils.setDrawableTint(this, closeIcon, R.attr.compose_close_button_tint);
+ actionBar.setHomeAsUpIndicator(closeIcon);
}
SharedPreferences preferences = getSharedPreferences(
@@ -386,11 +388,7 @@ public class ComposeActivity extends BaseActivity {
startingHideText = false;
}
- if (statusMarkSensitive) {
- nsfwBtn.setTextColor(ContextCompat.getColor(this, R.color.color_accent_dark));
- } else {
- nsfwBtn.setTextColor(ContextCompat.getColor(this, R.color.image_button_dark));
- }
+ updateNsfwButtonColor();
Intent intent = getIntent();
String[] mentionedUsernames = null;
@@ -487,11 +485,14 @@ public class ComposeActivity extends BaseActivity {
private void toggleNsfw() {
statusMarkSensitive = !statusMarkSensitive;
+ updateNsfwButtonColor();
+ }
+ private void updateNsfwButtonColor() {
if (statusMarkSensitive) {
- nsfwBtn.setTextColor(ContextCompat.getColor(this, R.color.color_accent_dark));
+ nsfwBtn.setTextColor(ThemeUtils.getColor(this, R.attr.compose_nsfw_button_selected_color));
} else {
- nsfwBtn.setTextColor(ContextCompat.getColor(this, R.color.image_button_dark));
+ nsfwBtn.setTextColor(ThemeUtils.getColor(this, R.attr.compose_nsfw_button_color));
}
}
@@ -862,10 +863,14 @@ public class ComposeActivity extends BaseActivity {
private void enableMediaPicking() {
pickBtn.setEnabled(true);
+ ThemeUtils.setDrawableTint(this, pickBtn.getDrawable(),
+ R.attr.compose_media_button_tint);
}
private void disableMediaPicking() {
pickBtn.setEnabled(false);
+ ThemeUtils.setDrawableTint(this, pickBtn.getDrawable(),
+ R.attr.compose_media_button_disabled_tint);
}
private void addMediaToQueue(QueuedMedia.Type type, Bitmap preview, Uri uri, long mediaSize) {
@@ -1159,7 +1164,7 @@ public class ComposeActivity extends BaseActivity {
if(!showMarkSensitive) {
statusMarkSensitive = false;
- nsfwBtn.setTextColor(ContextCompat.getColor(this, R.color.image_button_dark));
+ nsfwBtn.setTextColor(ThemeUtils.getColor(this, R.attr.compose_nsfw_button_color));
}
if(show) {
diff --git a/app/src/main/java/com/keylesspalace/tusky/LoginActivity.java b/app/src/main/java/com/keylesspalace/tusky/LoginActivity.java
index a4709477..d6201e28 100644
--- a/app/src/main/java/com/keylesspalace/tusky/LoginActivity.java
+++ b/app/src/main/java/com/keylesspalace/tusky/LoginActivity.java
@@ -22,6 +22,7 @@ import android.content.Intent;
import android.content.SharedPreferences;
import android.net.Uri;
import android.os.Bundle;
+import android.preference.PreferenceManager;
import android.support.v7.app.AppCompatActivity;
import android.text.method.LinkMovementMethod;
import android.view.View;
@@ -168,6 +169,11 @@ public class LoginActivity extends AppCompatActivity {
@Override
protected void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
+
+ if (PreferenceManager.getDefaultSharedPreferences(this).getBoolean("lightTheme", false)) {
+ setTheme(R.style.AppTheme_Light);
+ }
+
setContentView(R.layout.activity_login);
ButterKnife.bind(this);
diff --git a/app/src/main/java/com/keylesspalace/tusky/StatusViewHolder.java b/app/src/main/java/com/keylesspalace/tusky/StatusViewHolder.java
index ee1e4d74..5efa94fb 100644
--- a/app/src/main/java/com/keylesspalace/tusky/StatusViewHolder.java
+++ b/app/src/main/java/com/keylesspalace/tusky/StatusViewHolder.java
@@ -274,6 +274,7 @@ class StatusViewHolder extends RecyclerView.ViewHolder {
contentWarningDescription.setText(spoilerText);
contentWarningBar.setVisibility(View.VISIBLE);
content.setVisibility(View.GONE);
+ contentWarningButton.setChecked(false);
contentWarningButton.setOnCheckedChangeListener(
new CompoundButton.OnCheckedChangeListener() {
@Override
diff --git a/app/src/main/res/drawable/favourite_active.xml b/app/src/main/res/drawable/favourite_active_dark.xml
similarity index 100%
rename from app/src/main/res/drawable/favourite_active.xml
rename to app/src/main/res/drawable/favourite_active_dark.xml
diff --git a/app/src/main/res/drawable/favourite_active_light.xml b/app/src/main/res/drawable/favourite_active_light.xml
new file mode 100644
index 00000000..cb9ff4ec
--- /dev/null
+++ b/app/src/main/res/drawable/favourite_active_light.xml
@@ -0,0 +1,9 @@
+
+
+
diff --git a/app/src/main/res/layout/activity_blocks.xml b/app/src/main/res/layout/activity_blocks.xml
index aec7c626..a305a19f 100644
--- a/app/src/main/res/layout/activity_blocks.xml
+++ b/app/src/main/res/layout/activity_blocks.xml
@@ -1,7 +1,7 @@
-
diff --git a/app/src/main/res/layout/activity_compose.xml b/app/src/main/res/layout/activity_compose.xml
index 8183cea8..f5bbb3f9 100644
--- a/app/src/main/res/layout/activity_compose.xml
+++ b/app/src/main/res/layout/activity_compose.xml
@@ -1,7 +1,6 @@
@@ -17,9 +16,7 @@
android:layout_height="?attr/actionBarSize"
android:layout_marginBottom="8dp"
android:background="@android:color/transparent"
- android:elevation="4dp"
- android:theme="@style/AppTheme.Account.AppBarLayout"
- app:popupTheme="@style/AppTheme.Account.ToolbarPopupTheme.Dark" />
+ android:elevation="4dp" />
-
+
-
-
-
+
+
+
diff --git a/app/src/main/res/values/colors.xml b/app/src/main/res/values/colors.xml
index 4cb6dc0b..c055d723 100644
--- a/app/src/main/res/values/colors.xml
+++ b/app/src/main/res/values/colors.xml
@@ -1,7 +1,6 @@
- #4F4F4F
#000000
#4c5368
@@ -27,7 +26,6 @@
#ca8f04
#303030
#2F2F2F
- #A4B4BC
#2f3441
#4C534B
#FFFFFF
@@ -35,44 +33,39 @@
#FFFFFF
#8F8F8F
#AFBFCF
- #9F9F9F
- #CFCFCF
#000000
#2F2F2F
- #44A673
- #2C996E
- #3F8A65
- #79daa8
- #FFFFFF
- #FFFFFF
+ #dfdfdf
+ #8f8f8f
+ #2b90d9
+ #52a5e0
+ #f4f4f4
+ #f4f4f4
#000000
#000000
- #000000
- #4f5f5f
- #FFFFFF
- #FFFFFF
- #FFFFFF
+ #3c3c3c
+ #5f636f
+ #ffffff
+ #ffffff
+ #ffffff
#f6f7f7
#000000
- #4F4F4F
- #4F4F4F
+ #4f4f4f
+ #4f4f4f
#56a7e1
#BFBFBF
- #4F4F4F
+ #4f4f4f
#fab207
- #B0B0B0
- #CFCFCF
- #34444C
- #CFCFCF
+ #b0b0b0
+ #cfcfcf
+ #cfcfcf
#9F9F9F
#000000
#EFEFEF
#000000
#8F8F8F
#2F5F6F
- #7F7F7F
- #1F1F1F
#EFEFEF
#9F9F9F
diff --git a/app/src/main/res/values/styles.xml b/app/src/main/res/values/styles.xml
index 2d5dc4ab..d6f58e08 100644
--- a/app/src/main/res/values/styles.xml
+++ b/app/src/main/res/values/styles.xml
@@ -10,6 +10,11 @@
- @color/text_color_tertiary_dark
+
+
-
-