2014-11-04 17:08:30 +00:00
|
|
|
package eu.siacs.conversations.ui;
|
|
|
|
|
|
|
|
import android.app.Activity;
|
Dark theme, theme switch, icons, style, strings
added some white icons,
changed hardcoded icons to theme attributes,
changed icon_edit_dark to icon_edit_body to reflect icons position,
grey message bubbles in dark theme,
misc
purged ic_action_chat as it wasn't used
preference use_white_background changed to use_green_background, default true
grey chat bubbles darker, text white
replaced all grey600 with black icons and 0.54 alpha attribute
highlightColor in dark grey chat bubble now darker than background
2016-05-12 18:00:18 +00:00
|
|
|
import android.content.res.Resources;
|
2014-11-04 17:08:30 +00:00
|
|
|
import android.os.Bundle;
|
Dark theme, theme switch, icons, style, strings
added some white icons,
changed hardcoded icons to theme attributes,
changed icon_edit_dark to icon_edit_body to reflect icons position,
grey message bubbles in dark theme,
misc
purged ic_action_chat as it wasn't used
preference use_white_background changed to use_green_background, default true
grey chat bubbles darker, text white
replaced all grey600 with black icons and 0.54 alpha attribute
highlightColor in dark grey chat bubble now darker than background
2016-05-12 18:00:18 +00:00
|
|
|
import android.preference.PreferenceManager;
|
2014-11-04 17:08:30 +00:00
|
|
|
|
|
|
|
import eu.siacs.conversations.R;
|
|
|
|
|
|
|
|
public class AboutActivity extends Activity {
|
|
|
|
|
|
|
|
@Override
|
|
|
|
protected void onCreate(Bundle savedInstanceState) {
|
|
|
|
super.onCreate(savedInstanceState);
|
Dark theme, theme switch, icons, style, strings
added some white icons,
changed hardcoded icons to theme attributes,
changed icon_edit_dark to icon_edit_body to reflect icons position,
grey message bubbles in dark theme,
misc
purged ic_action_chat as it wasn't used
preference use_white_background changed to use_green_background, default true
grey chat bubbles darker, text white
replaced all grey600 with black icons and 0.54 alpha attribute
highlightColor in dark grey chat bubble now darker than background
2016-05-12 18:00:18 +00:00
|
|
|
|
|
|
|
Boolean dark = PreferenceManager.getDefaultSharedPreferences(getApplicationContext())
|
|
|
|
.getString("theme", "light").equals("dark");
|
|
|
|
int mTheme = dark ? R.style.ConversationsTheme_Dark : R.style.ConversationsTheme;
|
|
|
|
setTheme(mTheme);
|
|
|
|
|
2014-11-04 17:08:30 +00:00
|
|
|
setContentView(R.layout.activity_about);
|
|
|
|
}
|
|
|
|
}
|