mirror of
https://github.com/LawnchairLauncher/lawnchair.git
synced 2026-02-19 18:58:19 +00:00
Adding support for dark text on dark theme
Bug: 80253867 Change-Id: Ib81a2fe884f68cd2dd4af1e573bd8c836f374f16
This commit is contained in:
@@ -90,11 +90,11 @@ public abstract class BaseDraggingActivity extends BaseActivity
|
||||
|
||||
protected int getThemeRes(WallpaperColorInfo wallpaperColorInfo) {
|
||||
if (wallpaperColorInfo.isDark()) {
|
||||
return R.style.LauncherThemeDark;
|
||||
} else if (wallpaperColorInfo.supportsDarkText()) {
|
||||
return R.style.LauncherThemeDarkText;
|
||||
return wallpaperColorInfo.supportsDarkText() ?
|
||||
R.style.LauncherThemeDark_DarKText : R.style.LauncherThemeDark;
|
||||
} else {
|
||||
return R.style.LauncherTheme;
|
||||
return wallpaperColorInfo.supportsDarkText() ?
|
||||
R.style.LauncherTheme_DarkText : R.style.LauncherTheme;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user