@ -60,7 +60,8 @@ Loader{
readonly property bool editModeTextColorIsBright: ColorizerTools . colorBrightness ( editModeTextColor ) > 127.5
readonly property bool editModeTextColorIsBright: ColorizerTools . colorBrightness ( editModeTextColor ) > 127.5
readonly property color editModeTextColor: latteView && latteView . layout ? latteView.layout.textColor : "white"
readonly property color editModeTextColor: latteView && latteView . layout ? latteView.layout.textColor : "white"
readonly property bool mustBeShown: ( applyTheme && applyTheme !== theme ) || ( root . inConfigureAppletsMode && ( root . themeColors === Latte . Types . SmartThemeColors ) )
readonly property bool mustBeShown: ( applyTheme && applyTheme !== theme )
|| ( root . inConfigureAppletsMode && ( root . themeColors === Latte . Types . SmartThemeColors ) )
readonly property real currentBackgroundBrightness: item ? item.currentBrightness : - 1000
readonly property real currentBackgroundBrightness: item ? item.currentBrightness : - 1000
@ -102,10 +103,25 @@ Loader{
}
}
if ( root . themeColors === Latte . Types . SmartThemeColors ) {
if ( root . themeColors === Latte . Types . SmartThemeColors ) {
if ( currentBackgroundBrightness > 127.5 ) {
/ / ! S m a r t C o l o r s C a s e
return themeExtended . lightTheme ;
if ( ! root . forcePanelForBusyBackground ) {
/ / ! s i m p l e c a s e t h a t n o t a b u s y b a c k g r o u n d i s a p p l i e d
return currentBackgroundBrightness > 127.5 ? themeExtended.lightTheme : themeExtended . darkTheme ;
} else {
} else {
/ / ! S m a r t + B u s y b a c k g r o u n d c a s e
var themeContrastedTextColor = currentBackgroundBrightness > 127.5 ? themeExtended.lightTheme : themeExtended . darkTheme ;
var themeContrastedBackground = currentBackgroundBrightness > 127.5 ? themeExtended.darkTheme : themeExtended . lightTheme ;
if ( root . panelTransparency < 35 ) {
/ / ! t e x t C o l o r s h o u l d b e b e t t e r t o p r o v i d e t h e n e e d e d c o n t r a s t
return themeContrastedTextColor ;
} else if ( root . panelTransparency >= 35 && root . panelTransparency <= 70 ) {
/ / ! p r o v i d e a d a r k c a s e s c e n a r i o a t a l l c a s e s
return themeExtended . darkTheme ;
return themeExtended . darkTheme ;
} else {
/ / ! d e f a u l t p l a s m a t h e m e s h o u d b e b e t t e r f o r p a n e l t r a n s p a r e n c y > 7 0
return theme ;
}
}
}
}
}
}
}