Skip to content

Commit

Permalink
Better Plasma color scheme
Browse files Browse the repository at this point in the history
Also:
- Improve disabled controls effect
- Use surface for view backgrounds
- Removed inactive window effects
- Make use of new surface container rules
#194
  • Loading branch information
luisbocanegra committed May 3, 2024
1 parent 0a0fd50 commit 60cfbd0
Showing 1 changed file with 48 additions and 50 deletions.
98 changes: 48 additions & 50 deletions src/kde_material_you_colors/schemeconfigs.py
Original file line number Diff line number Diff line change
Expand Up @@ -194,7 +194,7 @@ def __init__(

best_colors_count = len(colors_best)
# bg , ansi 30
pywal_colors_dark = (extras["dark"]["surface"],)
pywal_colors_dark = (colors_dark["surface"],)
# gray? bold, ansi 30
pywal_colors_dark_intense = (
blendColors(pywal_colors_dark[0], tones_secondary[90], 0.8),
Expand Down Expand Up @@ -265,7 +265,7 @@ def __init__(

tone = 50
# ansi 30
pywal_colors_light = (extras["light"]["surface"],)
pywal_colors_light = (colors_light["surface"],)
pywal_colors_light_intense = (
blendColors(pywal_colors_light[0], tones_secondary[25], 0.8),
)
Expand Down Expand Up @@ -373,28 +373,28 @@ def __init__(
# print()

self._light_scheme = f"""[ColorEffects:Disabled]
Color={extras['light']['surface1']}
ColorAmount=0.55
ColorEffect=0
ContrastAmount=0.65
Color={colors_light["surface"]}
ColorAmount=0.3
ColorEffect=3
ContrastAmount=0.4
ContrastEffect=1
IntensityAmount=0.1
IntensityEffect=2
IntensityEffect=0
[ColorEffects:Inactive]
ChangeSelectionColor=true
Color={colors_light['surfaceVariant']}
Color={colors_light['surfaceContainerLowest']}
ColorAmount=0.025
ColorEffect=2
ColorEffect=0
ContrastAmount=0.1
ContrastEffect=2
ContrastEffect=0
Enable=false
IntensityAmount=0
IntensityEffect=0
[Colors:Button]
BackgroundAlternate={colors_light['surfaceVariant']}
BackgroundNormal={extras['light']['selectionAlt']}
BackgroundNormal={colors_light['surfaceContainerHigh']}
DecorationFocus={colors_light['primary']}
DecorationHover={colors_light['primary']}
ForegroundActive={colors_light['onSurface']}
Expand All @@ -408,7 +408,7 @@ def __init__(
[Colors:Complementary]
BackgroundAlternate={extras['light']['surface']}
BackgroundNormal={extras['light']['surface3']}
BackgroundNormal={colors_light['surfaceContainer']}
DecorationFocus={colors_light['primary']}
DecorationHover={colors_light['primary']}
ForegroundActive={colors_light['inverseSurface']}
Expand All @@ -421,22 +421,22 @@ def __init__(
ForegroundVisited={base_text_states['Visited']}
[Colors:Header]
BackgroundAlternate={extras['light']['surface']}
BackgroundNormal={extras['light']['surface3']}
BackgroundAlternate={colors_light['surface']}
BackgroundNormal={colors_light['surface']}
DecorationFocus={colors_light['primary']}
DecorationHover={colors_light['primary']}
ForegroundActive={colors_light['inverseSurface']}
ForegroundInactive={colors_light['outline']}
ForegroundLink={base_text_states['Link']}
ForegroundNegative={colors_light['error']}
ForegroundNeutral={base_text_states['Neutral']}
ForegroundNormal={colors_light['onSurfaceVariant']}
ForegroundNormal={colors_light['onSurface']}
ForegroundPositive={base_text_states['Positive']}
ForegroundVisited={base_text_states['Visited']}
[Colors:Header][Inactive]
BackgroundAlternate={extras['light']['surface']}
BackgroundNormal={extras['light']['surface3']}
BackgroundAlternate={colors_light['surface']}
BackgroundNormal={colors_light['surface']}
DecorationFocus={colors_light['primary']}
DecorationHover={colors_light['primary']}
ForegroundActive={colors_light['inverseSurface']}
Expand All @@ -452,7 +452,7 @@ def __init__(
BackgroundAlternate={colors_light['primary']}
BackgroundNormal={colors_light['primary']}
DecorationFocus={colors_light['primary']}
DecorationHover={colors_light['primary']}
DecorationHover={colors_light['secondary']}
ForegroundActive={colors_light['onPrimary']}
ForegroundInactive={colors_light['onPrimary']}
ForegroundLink={extras['light']['linkOnPrimary']}
Expand All @@ -464,7 +464,7 @@ def __init__(
[Colors:Tooltip]
BackgroundAlternate={colors_light['surfaceVariant']}
BackgroundNormal={extras['light']['surface']}
BackgroundNormal={colors_light['surfaceContainer']}
DecorationFocus={colors_light['primary']}
DecorationHover={colors_light['primary']}
ForegroundActive={colors_light['onSurface']}
Expand All @@ -477,8 +477,8 @@ def __init__(
ForegroundVisited={base_text_states['Visited']}
[Colors:View]
BackgroundAlternate={extras['light']['surface2']}
BackgroundNormal={extras['light']['surface']}
BackgroundAlternate={colors_light['surfaceContainer']}
BackgroundNormal={colors_light['surfaceBright']}
DecorationFocus={colors_light['primary']}
#-----------------------------------------------
DecorationHover={extras['light']['selectionHover']}
Expand All @@ -487,16 +487,16 @@ def __init__(
ForegroundLink={extras['light']['linkOnSurface']}
ForegroundNegative={colors_light['error']}
ForegroundNeutral={extras['light']['neutralOnSurface']}
ForegroundNormal={colors_light['onSurfaceVariant']}
ForegroundNormal={colors_light['onSurface']}
ForegroundPositive={extras['light']['positiveOnSurface']}
ForegroundVisited={extras['light']['linkVisitedOnSurface']}
[Colors:Window]
BackgroundAlternate={extras['light']['surface']}
BackgroundNormal={extras['light']['surface3']}
BackgroundAlternate={colors_light['surfaceVariant']}
BackgroundNormal={colors_light['surfaceContainer']}
DecorationFocus={colors_light['primary']}
DecorationHover={colors_light['primary']}
ForegroundActive={colors_light['inverseSurface']}
ForegroundActive={base_text_states['Link']}
ForegroundInactive={colors_light['outline']}
ForegroundLink={base_text_states['Link']}
ForegroundNegative={colors_light['error']}
Expand Down Expand Up @@ -524,28 +524,28 @@ def __init__(
"""

self._dark_scheme = f"""[ColorEffects:Disabled]
Color={extras['dark']['surface1']}
ColorAmount=0
ColorEffect=0
ContrastAmount=0.65
Color={colors_dark["surface"]}
ColorAmount=0.3
ColorEffect=3
ContrastAmount=0.4
ContrastEffect=1
IntensityAmount=0.1
IntensityEffect=2
IntensityEffect=0
[ColorEffects:Inactive]
ChangeSelectionColor=true
Color=Color={colors_dark['surfaceVariant']}
Color={colors_dark['surfaceContainerLowest']}
ColorAmount=0.025
ColorEffect=2
ColorEffect=0
ContrastAmount=0.1
ContrastEffect=2
Enable=false
ContrastEffect=0
Enable=true
IntensityAmount=0
IntensityEffect=0
[Colors:Button]
BackgroundAlternate={colors_dark['surfaceVariant']}
BackgroundNormal={extras['dark']['selectionAlt']}
BackgroundNormal={colors_dark['surfaceContainerHigh']}
DecorationFocus={colors_dark['primary']}
DecorationHover={colors_dark['primary']}
ForegroundActive={colors_dark['onSurface']}
Expand All @@ -559,7 +559,7 @@ def __init__(
[Colors:Complementary]
BackgroundAlternate={extras['dark']['surface']}
BackgroundNormal={extras['dark']['surface3']}
BackgroundNormal={colors_dark['surfaceContainer']}
DecorationFocus={colors_dark['primary']}
DecorationHover={colors_dark['primary']}
ForegroundActive={colors_dark['inverseSurface']}
Expand All @@ -572,8 +572,8 @@ def __init__(
ForegroundVisited={base_text_states['Visited']}
[Colors:Header]
BackgroundAlternate={extras['dark']['surface']}
BackgroundNormal={extras['dark']['surface3']}
BackgroundAlternate={colors_dark['surface']}
BackgroundNormal={colors_dark['surface']}
DecorationFocus={colors_dark['primary']}
DecorationHover={colors_dark['primary']}
ForegroundActive={colors_dark['inverseSurface']}
Expand All @@ -586,8 +586,8 @@ def __init__(
ForegroundVisited={base_text_states['Visited']}
[Colors:Header][Inactive]
BackgroundAlternate={extras['dark']['surface']}
BackgroundNormal={extras['dark']['surface3']}
BackgroundAlternate={colors_dark['surface']}
BackgroundNormal={colors_dark['surface']}
DecorationFocus={colors_dark['primary']}
DecorationHover={colors_dark['primary']}
ForegroundActive={colors_dark['inverseSurface']}
Expand All @@ -603,7 +603,7 @@ def __init__(
BackgroundAlternate={colors_dark['primary']}
BackgroundNormal={colors_dark['primary']}
DecorationFocus={colors_dark['primary']}
DecorationHover={colors_dark['primary']}
DecorationHover={colors_dark['secondary']}
ForegroundActive={colors_dark['onPrimary']}
ForegroundInactive={colors_dark['onPrimary']}
ForegroundLink={extras['dark']['linkOnPrimary']}
Expand All @@ -613,11 +613,9 @@ def __init__(
ForegroundPositive={extras['dark']['positiveOnPrimary']}
ForegroundVisited={extras['dark']['linkVisitedOnPrimary']}
[Colors:Tooltip]
BackgroundAlternate={colors_dark['surfaceVariant']}
BackgroundNormal={extras['dark']['surface']}
BackgroundNormal={colors_dark['surfaceContainer']}
DecorationFocus={colors_dark['primary']}
DecorationHover={colors_dark['primary']}
ForegroundActive={colors_dark['onSurface']}
Expand All @@ -630,8 +628,8 @@ def __init__(
ForegroundVisited={base_text_states['Visited']}
[Colors:View]
BackgroundAlternate={extras['dark']['surface2']}
BackgroundNormal={extras['dark']['surface']}
BackgroundAlternate={colors_dark['surfaceContainer']}
BackgroundNormal={colors_dark['surfaceDim']}
DecorationFocus={colors_dark['primary']}
#-----------------------------------------------
DecorationHover={colors_dark['inversePrimary']}
Expand All @@ -640,16 +638,16 @@ def __init__(
ForegroundLink={extras['dark']['linkOnSurface']}
ForegroundNegative={extras['dark']['negativeOnSurface']}
ForegroundNeutral={extras['dark']['neutralOnSurface']}
ForegroundNormal={colors_dark['onSurfaceVariant']}
ForegroundNormal={colors_dark['onSurface']}
ForegroundPositive={extras['dark']['positiveOnSurface']}
ForegroundVisited={extras['dark']['linkVisitedOnSurface']}
[Colors:Window]
BackgroundAlternate={extras['dark']['surface']}
BackgroundNormal={extras['dark']['surface3']}
BackgroundAlternate={colors_dark['surfaceVariant']}
BackgroundNormal={colors_dark['surfaceContainer']}
DecorationFocus={colors_dark['primary']}
DecorationHover={colors_dark['primary']}
ForegroundActive={colors_dark['inverseSurface']}
ForegroundActive={base_text_states['Link']}
ForegroundInactive={colors_dark['outline']}
ForegroundLink={base_text_states['Link']}
ForegroundNegative={tones_error[50]}
Expand Down

0 comments on commit 60cfbd0

Please sign in to comment.