Browse Source

Add accent color support to SolarizedLightTheme.

Add missing accent color definitions to other themes.
pull/222/head
weisj 4 years ago
parent
commit
0bd0de485a
  1. 5
      theme/src/main/java/com/github/weisj/darklaf/theme/SolarizedLightTheme.java
  2. 4
      theme/src/main/resources/com/github/weisj/darklaf/theme/darcula/darcula_accents.properties
  3. 4
      theme/src/main/resources/com/github/weisj/darklaf/theme/intellij/intellij_accents.properties
  4. 4
      theme/src/main/resources/com/github/weisj/darklaf/theme/one_dark/one_dark_accents.properties
  5. 2
      theme/src/main/resources/com/github/weisj/darklaf/theme/solarized_dark/solarized_dark_accents.properties
  6. 21
      theme/src/main/resources/com/github/weisj/darklaf/theme/solarized_light/solarized_light_accents.properties

5
theme/src/main/java/com/github/weisj/darklaf/theme/SolarizedLightTheme.java

@ -64,6 +64,11 @@ public class SolarizedLightTheme extends Theme {
return true; return true;
} }
@Override
public boolean supportsCustomAccentColor() {
return true;
}
@Override @Override
public void customizeUIProperties(final Properties properties, final UIDefaults currentDefaults) { public void customizeUIProperties(final Properties properties, final UIDefaults currentDefaults) {
super.customizeUIProperties(properties, currentDefaults); super.customizeUIProperties(properties, currentDefaults);

4
theme/src/main/resources/com/github/weisj/darklaf/theme/darcula/darcula_accents.properties

@ -31,7 +31,9 @@ accent.propertyList = {widgetFillDefault:[100,100,100];\
controlBorderFocus:[100,90,116];\ controlBorderFocus:[100,90,116];\
controlBorderFocusSelected:[100,90,116];\ controlBorderFocusSelected:[100,90,116];\
glowFocusLine:[100,90,116];\ glowFocusLine:[100,90,116];\
glowFocusLineInactive:[100,90,116];\
glowFocus:[100,120,155];\ glowFocus:[100,120,155];\
glowFocusInactive:[100,120,155];\
borderFocus:[100,76,122];\ borderFocus:[100,76,122];\
highlightFill:[100,80,45];\ highlightFill:[100,80,45];\
highlightFillFocus:[100,100,80];\ highlightFillFocus:[100,100,80];\
@ -40,6 +42,6 @@ accent.propertyList = {widgetFillDefault:[100,100,100];\
controlFillHighlight:[100,100,100];\ controlFillHighlight:[100,100,100];\
controlFillHighlightDisabled:[100,77,50];\ controlFillHighlightDisabled:[100,77,50];\
hyperlink:[100,100,100]} hyperlink:[100,100,100]}
selection.propertyList = {textCompSelectionBackground} selection.propertyList = {textCompSelectionBackground;textSelectionBackground}
selectionForeground.propertyList = {%textCompSelectionBackground:textCompSelectionForeground} selectionForeground.propertyList = {%textCompSelectionBackground:textCompSelectionForeground}

4
theme/src/main/resources/com/github/weisj/darklaf/theme/intellij/intellij_accents.properties

@ -31,7 +31,9 @@ accent.propertyList = {widgetFillDefault:[100,100,100];\
controlBorderFocus:[100,60,100];\ controlBorderFocus:[100,60,100];\
controlBorderFocusSelected:[100,50,122];\ controlBorderFocusSelected:[100,50,122];\
glowFocusLine:[100,60,100];\ glowFocusLine:[100,60,100];\
glowFocusLineInactive:[100,60,100];\
glowFocus:[100,120,120];\ glowFocus:[100,120,120];\
glowFocusInactive:[100,120,120];\
borderFocus:[100,76,122];\ borderFocus:[100,76,122];\
highlightFillFocus:[100,130,95];\ highlightFillFocus:[100,130,95];\
highlightFillFocusSecondary:[100,110,100];\ highlightFillFocusSecondary:[100,110,100];\
@ -40,6 +42,6 @@ accent.propertyList = {widgetFillDefault:[100,100,100];\
widgetFillSelected:[100,100,100];\ widgetFillSelected:[100,100,100];\
controlFillHighlight:[100,100,100];\ controlFillHighlight:[100,100,100];\
hyperlink:[100,100,100]} hyperlink:[100,100,100]}
selection.propertyList = {textCompSelectionBackground} selection.propertyList = {textCompSelectionBackground;textSelectionBackground}
selectionForeground.propertyList = {%textCompSelectionBackground:textCompSelectionForeground} selectionForeground.propertyList = {%textCompSelectionBackground:textCompSelectionForeground}

4
theme/src/main/resources/com/github/weisj/darklaf/theme/one_dark/one_dark_accents.properties

@ -31,7 +31,9 @@ accent.propertyList = {widgetFillDefault:[100,100,100];\
controlBorderFocus:[100,90,116];\ controlBorderFocus:[100,90,116];\
controlBorderFocusSelected:[100,90,116];\ controlBorderFocusSelected:[100,90,116];\
glowFocusLine:[100,90,116];\ glowFocusLine:[100,90,116];\
glowFocusLineInactive:[100,90,116];\
glowFocus:[100,120,155];\ glowFocus:[100,120,155];\
glowFocusInactive:[100,120,155];\
borderFocus:[100,76,122];\ borderFocus:[100,76,122];\
highlightFill:[100,80,45];\ highlightFill:[100,80,45];\
highlightFillFocus:[100,100,80];\ highlightFillFocus:[100,100,80];\
@ -43,6 +45,6 @@ accent.propertyList = {widgetFillDefault:[100,100,100];\
controlFadeEnd:[100,50,30];\ controlFadeEnd:[100,50,30];\
controlFillHighlightDisabled:[100,77,50];\ controlFillHighlightDisabled:[100,77,50];\
hyperlink:[100,100,100]} hyperlink:[100,100,100]}
selection.propertyList = {textCompSelectionBackground} selection.propertyList = {textCompSelectionBackground;textSelectionBackground}
selectionForeground.propertyList = {%textCompSelectionBackground:textCompSelectionForeground} selectionForeground.propertyList = {%textCompSelectionBackground:textCompSelectionForeground}

2
theme/src/main/resources/com/github/weisj/darklaf/theme/solarized_dark/solarized_dark_accents.properties

@ -24,6 +24,6 @@
# #
# suppress inspection "UnusedProperty" for whole file # suppress inspection "UnusedProperty" for whole file
# #
selection.propertyList = {textCompSelectionBackground} selection.propertyList = {textCompSelectionBackground;textSelectionBackground}
selectionForeground.propertyList = {%textCompSelectionBackground:textCompSelectionForeground} selectionForeground.propertyList = {%textCompSelectionBackground:textCompSelectionForeground}

21
theme/src/main/resources/com/github/weisj/darklaf/theme/solarized_light/solarized_light_accents.properties

@ -24,6 +24,25 @@
# #
# suppress inspection "UnusedProperty" for whole file # suppress inspection "UnusedProperty" for whole file
# #
selection.propertyList = {textCompSelectionBackground} accent.propertyList = {widgetFillDefault:[100,100,100];\
dropForeground:[104,73,95];\
acceleratorForeground:[104,73,95];\
borderFocus:[98,130,113];\
hoverHighlightDefault:[100,89,103];\
clickHighlightDefault:[100,80,107];\
highlightFillFocus:[103,90,100];\
highlightFillFocusSecondary:[100,108,103];\
widgetBorderDefault:[102,98,94];\
controlBorderFocus:[99,54,110];\
controlBorderFocusSelected:[99,54,110];\
glowFocus:[100,100,100];\
glowFocusInactive:[100,100,100];\
glowFocusLine:[98,43,100];\
glowFocusLineInactive:[98,43,100];\
controlBorderSelected:[100,100,100];\
widgetFillSelected:[100,100,100];\
controlFillHighlight:[100,100,100];\
hyperlink:[100,100,100]}
selection.propertyList = {textCompSelectionBackground;textSelectionBackground}
selectionForeground.propertyList = {%textCompSelectionBackground:textCompSelectionForeground} selectionForeground.propertyList = {%textCompSelectionBackground:textCompSelectionForeground}

Loading…
Cancel
Save