修改scrollbar radiobutton slider progressbar颜色配置等

This commit is contained in:
tanjing 2024-01-12 18:07:23 +08:00
parent f3741d9638
commit 606e0e5919
5 changed files with 160 additions and 199 deletions

View File

@ -341,7 +341,8 @@
},
"CheckBox":{
"DefaultCheckBox":{
"DisablePen" : {"value": "Button_dis", "type": "color"},
"DefaultPen" : {"value": "166, 166, 166", "type": "color"},
"DisablePen" : {"value": "166, 166, 166", "type": "color"},
"ContentPen" : {"value": "Text_at", "type": "paletterole"},
"DefaultBrush" : {"value": "Button_at", "type": "paletterole"},
"DisableBrush" : {"value": "Button_at", "type": "paletterole"},
@ -349,7 +350,8 @@
"PathDisableBrush" : {"value": "ButtonText_dis", "type": "paletterole"}
},
"TranslucentCheckBox":{
"DisablePen" : {"value": "Button_dis", "type": "color"},
"DefaultPen" : {"value": "166, 166, 166", "type": "color"},
"DisablePen" : {"value": "166, 166, 166", "type": "color"},
"ContentPen" : {"value": "Text_at", "type": "paletterole"},
"DefaultBrush" : {"value": "Button_at", "type": "paletterole"},
"DisableBrush" : {"value": "Button_at", "type": "paletterole"},
@ -359,6 +361,7 @@
},
"RadioButton":{
"DefaultRadioButton":{
"DefaultPen" : {"value": "166, 166, 166", "type": "color"},
"DisablePen" : {"value": "Button_dis", "type": "paletterole"},
"DefaultBrush" : {"value": "Button_at", "type": "paletterole"},
"HoverBrush" : { "type": "color"},
@ -373,23 +376,27 @@
"DefaultSliderBar":{
"HandleDefaultBrush" : {"value": "Button_at", "type": "paletterole"},
"HandleDisableBrush" : {"value": "Button_at", "type": "paletterole"},
"HandleDisablePen" : {"value": "187, 187, 187", "type": "color"},
"GrooveValueDefaultBrush" : {"value": "HighLight_at", "type": "paletterole"},
"GrooveValueHoverBrush" : {"value": "HighLight_at", "type": "paletterole"},
"GrooveValueDisableBrush" : {"value": "Button_dis", "type": "paletterole"},
"GrooveUnvalueDefaultBrush" : {"value": "Button_at", "type": "paletterole"},
"GrooveUnvalueHoverBrush" : {"value": "Button_at", "type": "paletterole"},
"GrooveUnvalueDisableBrush" : {"value": "Button_at", "type": "paletterole"},
"SliderGroovePen" : {"value": "187, 187, 187", "type": "color"},
"FocusPen" : {"value": "HighLight_at", "type": "paletterole"}
},
"TranslucentSliderBar":{
"HandleDefaultBrush" : {"value": "Button_at", "type": "paletterole"},
"HandleDisableBrush" : {"value": "Button_at", "type": "paletterole"},
"HandleDisablePen" : {"value": "187, 187, 187", "type": "color"},
"GrooveValueDefaultBrush" : {"value": "HighLight_at", "type": "paletterole"},
"GrooveValueHoverBrush" : {"value": "HighLight_at", "type": "paletterole"},
"GrooveValueDisableBrush" : {"value": "Button_dis", "type": "paletterole"},
"GrooveUnvalueDefaultBrush" : {"value": "Button_at", "type": "paletterole"},
"GrooveUnvalueHoverBrush" : {"value": "Button_at", "type": "paletterole"},
"GrooveUnvalueDisableBrush" : {"value": "Button_at", "type": "paletterole"},
"SliderGroovePen" : {"value": "187, 187, 187", "type": "color"},
"FocusPen" : {"value": "HighLight_at", "type": "paletterole"}
}
},
@ -400,6 +407,8 @@
"ContentBrush" : {"value": "HighLight_at", "type": "paletterole"},
"GrooveDefaultBrush" : {"value": "Button_at", "type": "paletterole"},
"GrooveDisableBrush" : {"value": "Button_at", "type": "paletterole"},
"GrooveDefaultPen" : {"value": "187, 187, 187", "type": "color"},
"GrooveDisablePen" : {"value": "187, 187, 187", "type": "color"},
"ContentPen" : {"value": "0, 0, 0, 0", "type": "color"}
},
"TranslucentProgressBar": {
@ -408,6 +417,8 @@
"ContentBrush" : {"value": "HighLight_at", "type": "paletterole"},
"GrooveDefaultBrush" : {"value": "Button_at", "type": "paletterole"},
"GrooveDisableBrush" : {"value": "Button_at", "type": "paletterole"},
"GrooveDefaultPen" : {"value": "187, 187, 187", "type": "color"},
"GrooveDisablePen" : {"value": "187, 187, 187", "type": "color"},
"ContentPen" : {"value": "0, 0, 0, 0", "type": "color"}
}
},
@ -417,6 +428,7 @@
"GrooveInactiveBrush" : {"value": "Button_iat", "type": "paletterole"},
"SliderDefaultBrush" : {"value": "Button_dis", "type": "paletterole"},
"SliderHoverBrush" : {"value": "Midlight_at", "type": "paletterole"},
"SliderClickBrush" : {"value": "136, 136, 136", "type": "color"},
"SliderDisableBrush" : {"value": "0, 0, 0, 0", "type": "color"}
},
"TranslucentScrollBar": {
@ -424,6 +436,7 @@
"GrooveInactiveBrush" : {"value": "Button_iat", "type": "paletterole"},
"SliderDefaultBrush" : {"value": "Button_dis", "type": "paletterole"},
"SliderHoverBrush" : {"value": "Midlight_at", "type": "paletterole"},
"SliderClickBrush" : {"value": "136, 136, 136", "type": "color"},
"SliderDisableBrush" : {"value": "0, 0, 0, 0", "type": "color"}
}
},
@ -771,22 +784,28 @@
},
"CheckBox":{
"DefaultCheckBox":{
"ContentPen" : {"value": "BrightText_at", "type": "paletterole"},
"DefaultBrush" : {"value": "Button_at", "type": "paletterole"},
"DisableBrush" : {"value": "Button_dis", "type": "paletterole"},
"PathBrush" : {"value": "BrightText_at", "type": "paletterole"},
"PathDisableBrush" : {"value": "ButtonText_dis", "type": "paletterole"}
"DefaultPen" : {"value": "255, 255, 255, 0.15", "type": "color"},
"DisablePen" : {"value": "255, 255, 255, 0.15", "type": "color"},
"ContentPen" : {"value": "BrightText_at", "type": "paletterole"},
"DefaultBrush" : {"value": "Button_at", "type": "paletterole"},
"DisableBrush" : {"value": "Button_dis", "type": "paletterole"},
"PathBrush" : {"value": "Text_at", "type": "paletterole"},
"PathDisableBrush" : {"value": "ButtonText_dis", "type": "paletterole"}
},
"TranslucentCheckBox":{
"ContentPen" : {"value": "BrightText_at", "type": "paletterole"},
"DefaultBrush" : {"value": "Button_at", "type": "paletterole"},
"DisableBrush" : {"value": "Button_dis", "type": "paletterole"},
"PathBrush" : {"value": "BrightText_at", "type": "paletterole"},
"PathDisableBrush" : {"value": "ButtonText_dis", "type": "paletterole"}
"DefaultPen" : {"value": "255, 255, 255, 0.15", "type": "color"},
"DisablePen" : {"value": "255, 255, 255, 0.15", "type": "color"},
"ContentPen" : {"value": "BrightText_at", "type": "paletterole"},
"DefaultBrush" : {"value": "Button_at", "type": "paletterole"},
"DisableBrush" : {"value": "Button_dis", "type": "paletterole"},
"PathBrush" : {"value": "Text_at", "type": "paletterole"},
"PathDisableBrush" : {"value": "ButtonText_dis", "type": "paletterole"}
}
},
"RadioButton":{
"DefaultRadioButton":{
"DefaultPen" : {"value": "89, 89, 89", "type": "color"},
"DisablePen" : {"value": "89, 89, 89", "type": "color"},
"DefaultBrush" : {"value": "Button_at", "type": "paletterole"},
"HoverBrush" : { "type": "color"},
"DisableBrush" : {"value": "Button_dis", "type": "paletterole"},
@ -800,23 +819,27 @@
"DefaultSliderBar":{
"HandleDefaultBrush" : {"value": "Button_at", "type": "paletterole"},
"HandleDisableBrush" : {"value": "Button_at", "type": "paletterole"},
"HandleDisablePen" : {"value": "89, 89, 89", "type": "color"},
"GrooveValueDefaultBrush" : {"value": "HighLight_iat", "type": "paletterole"},
"GrooveValueHoverBrush" : {"value": "HighLight_iat", "type": "paletterole"},
"GrooveValueDisableBrush" : {"value": "ButtonText_dis", "type": "paletterole"},
"GrooveUnvalueDefaultBrush" : {"value": "Button_dis", "type": "paletterole"},
"GrooveUnvalueHoverBrush" : {"value": "Button_dis", "type": "paletterole"},
"GrooveUnvalueDisableBrush" : {"value": "Button_dis", "type": "paletterole"},
"SliderGroovePen" : {"value": "89, 89, 89", "type": "color"},
"FocusPen" : {"value": "HighLight_at", "type": "paletterole"}
},
"TranslucentSliderBar":{
"HandleDefaultBrush" : {"value": "Button_at", "type": "paletterole"},
"HandleDisableBrush" : {"value": "Button_at", "type": "paletterole"},
"HandleDisablePen" : {"value": "89, 89, 89", "type": "color"},
"GrooveValueDefaultBrush" : {"value": "HighLight_iat", "type": "paletterole"},
"GrooveValueHoverBrush" : {"value": "HighLight_iat", "type": "paletterole"},
"GrooveValueDisableBrush" : {"value": "ButtonText_dis", "type": "paletterole"},
"GrooveUnvalueDefaultBrush" : {"value": "Button_dis", "type": "paletterole"},
"GrooveUnvalueHoverBrush" : {"value": "Button_dis", "type": "paletterole"},
"GrooveUnvalueDisableBrush" : {"value": "Button_dis", "type": "paletterole"},
"SliderGroovePen" : {"value": "89, 89, 89", "type": "color"},
"FocusPen" : {"value": "HighLight_at", "type": "paletterole"}
}
},
@ -824,11 +847,15 @@
"DefaultProgressBar" :{
"GrooveDefaultBrush" : {"value": "Button_at", "type": "paletterole"},
"GrooveDisableBrush" : {"value": "Button_at", "type": "paletterole"},
"GrooveDefaultPen" : {"value": "89, 89, 89", "type": "color"},
"GrooveDisablePen" : {"value": "89, 89, 89", "type": "color"},
"ContentPen" : {"value": "0, 0, 0, 0", "type": "color"}
},
"TranslucentProgressBar": {
"GrooveDefaultBrush" : {"value": "Button_at", "type": "paletterole"},
"GrooveDisableBrush" : {"value": "Button_at", "type": "paletterole"},
"GrooveDefaultPen" : {"value": "89, 89, 89", "type": "color"},
"GrooveDisablePen" : {"value": "89, 89, 89", "type": "color"},
"ContentPen" : {"value": "0, 0, 0, 0", "type": "color"}
}
},
@ -837,15 +864,17 @@
"GrooveDefaultBrush" : {"value": "Button_dis", "type": "paletterole"},
"GrooveInactiveBrush" : {"value": "Button_dis", "type": "paletterole"},
"SliderDefaultBrush" : {"value": "Button_at", "type": "paletterole"},
"SliderHoverBrush" : { "type": "color"},
"SliderDisableBrush" : {"value": "0, 0, 0, 0", "type": "color"}
"SliderHoverBrush" : {"value": "87, 87, 93", "type": "color"},
"SliderClickBrush" : {"value": "102, 102, 102", "type": "color"},
"SliderDisableBrush" : {"value": "0, 0, 0, 0", "type": "color"}
},
"TranslucentScrollBar": {
"GrooveDefaultBrush" : {"value": "Button_dis", "type": "paletterole"},
"GrooveInactiveBrush" : {"value": "Button_dis", "type": "paletterole"},
"SliderDefaultBrush" : {"value": "Button_at", "type": "paletterole"},
"SliderHoverBrush" : { "type": "color"},
"SliderDisableBrush" : {"value": "0, 0, 0, 0", "type": "color"}
"SliderHoverBrush" : {"value": "87, 87, 93", "type": "color"},
"SliderClickBrush" : {"value": "102, 102, 102", "type": "color"},
"SliderDisableBrush" : {"value": "0, 0, 0, 0", "type": "color"}
}
},
"ToolTip":{

View File

@ -338,7 +338,8 @@
"OnClickPen" : {"value": "0, 0, 0, 0.1", "type": "color"},
"ContentPen" : {"value": "HighLightText_at", "type": "paletterole"},
"DefaultBrush" : {"value": "255, 255, 255", "type": "color"},
"HoverBrush" : {"type": "color"},
"HoverBrush" : {"value": "0, 0, 0, 0.05", "type": "color"},
"ClickBrush" : {"value": "0, 0, 0, 0.15", "type": "color"},
"OnDefaultBrush" : {"value": "HighLight_at", "type": "paletterole"},
"OnHoverBrush" : { "type": "color"},
"DisableBrush" : {"value": "Button_dis", "type": "paletterole"},
@ -346,13 +347,17 @@
"PathDisableBrush" : {"value": "ButtonText_dis", "type": "paletterole"}
},
"TranslucentCheckBox":{
"DefaultPen" : {"value": "0, 0, 0, 0.35", "type": "color"},
"HoverPen" : {"value": "0, 0, 0, 0.30", "type": "color"},
"ClickPen" : {"value": "0, 0, 0, 0.65", "type": "color"},
"DisablePen" : {"value": "166, 166, 166", "type": "color"},
"OnDefaultPen" : {"value": "0, 0, 0, 0.1", "type": "color"},
"OnHoverPen" : {"value": "0, 0, 0, 0.15", "type": "color"},
"OnClickPen" : {"value": "0, 0, 0, 0.1", "type": "color"},
"ContentPen" : {"value": "HighLightText_at", "type": "paletterole"},
"DefaultBrush" : {"value": "0, 0, 0, 0.05", "type": "color"},
"HoverBrush" : { "type": "color"},
"HoverBrush" : {"value": "0, 0, 0, 0.10", "type": "color"},
"ClickBrush" : {"value": "0, 0, 0, 0.16", "type": "color"},
"OnDefaultBrush" : {"value": "HighLight_at", "type": "paletterole"},
"OnHoverBrush" : { "type": "color"},
"DisableBrush" : {"value": "Button_dis", "type": "paletterole"},
@ -363,24 +368,30 @@
"RadioButton":{
"DefaultRadioButton":{
"DefaultPen" : {"value": "166, 166, 166", "type": "color"},
"HoverPen" : {"value": "166, 166, 166", "type": "color"},
"ClickPen" : {"value": "Mid_at", "type": "paletterole"},
"DisablePen" : {"value": "166, 166, 166", "type": "color"},
"OnDefaultPen" : {"value": "0, 0, 0, 0.1", "type": "color"},
"DefaultBrush" : {"value": "Light_at", "type": "paletterole"},
"HoverBrush" : { "type": "color"},
"HoverBrush" : {"value": "0, 0, 0, 0.05", "type": "color"},
"ClickBrush" : {"value": "0, 0, 0, 0.15", "type": "color"},
"OnDefaultBrush" : {"value": "HighLight_at", "type": "paletterole"},
"OnHoverBrush" : { "type": "color"},
"DisableBrush" : {"value": "Button_dis", "type": "paletterole"},
"ChildrenOnDefaultBrush" : {"value": "HighLightText_at", "type": "paletterole"},
"ChildrenOnHoverBrush" : {"value": "HighLightText_at", "type": "paletterole"},
"ChildrenOnClickBrush" : {"value": "Button_at", "type": "paletterole"},
"ChildrenOnDisableBrush" : {"value": "HighLightText_dis","type": "paletterole"}
}
},
"SliderBar":{
"DefaultSliderBar":{
"HandleDefaultBrush" : {"value": "HighLight_at", "type": "paletterole"},
"HandleHoverBrush" : { "type": "color"},
"HandleDisableBrush" : {"value": "ButtonText_dis", "type": "paletterole"},
"GrooveValueDisableBrush" : {"value": "ButtonText_dis", "type": "paletterole"},
"GrooveUnvalueDefaultBrush" : {"value": "Button_at", "type": "paletterole"},
"GrooveUnvalueHoverBrush" : {"value": "Button_at", "type": "paletterole"},
"GrooveUnvalueDisableBrush" : {"value": "Button_dis", "type": "paletterole"},
"FocusPen" : {"value": "HighLight_at", "type": "paletterole"}
},
@ -388,6 +399,9 @@
"HandleDefaultBrush" : {"value": "HighLight_at", "type": "paletterole"},
"HandleHoverBrush" : { "type": "color"},
"HandleDisableBrush" : {"value": "ButtonText_dis", "type": "paletterole"},
"GrooveValueDisableBrush" : {"value": "ButtonText_dis", "type": "paletterole"},
"GrooveUnvalueDefaultBrush" : {"value": "0, 0, 0, 0.1", "type": "color"},
"GrooveUnvalueHoverBrush" : {"value": "0, 0, 0, 0.1", "type": "color"},
"GrooveUnvalueDisableBrush" : {"value": "Button_dis", "type": "paletterole"},
"FocusPen" : {"value": "HighLight_at", "type": "paletterole"}
}
@ -411,7 +425,8 @@
"GrooveDefaultBrush" : {"value": "Base_at", "type": "paletterole"},
"GrooveInactiveBrush" : {"value": "Base_iat", "type": "paletterole"},
"SliderDefaultBrush" : {"value": "Button_at", "type": "paletterole"},
"SliderHoverBrush" : { "type": "color"},
"SliderHoverBrush" : {"value": "Midlight_at", "type": "paletterole"},
"SliderClickBrush" : {"value": "184, 184, 184", "type": "color"},
"SliderDisableBrush" : {"value": "0, 0, 0, 0", "type": "color"}
},
"TranslucentScrollBar": {
@ -783,7 +798,8 @@
"OnClickPen" : {"value": "255, 255, 255, 0.15", "type": "color"},
"ContentPen" : {"value": "HighLightText_at", "type": "paletterole"},
"DefaultBrush" : {"value": "Button_at", "type": "paletterole"},
"HoverBrush" : { "type": "color"},
"HoverBrush" : {"value": "255, 255, 255, 0.15", "type": "color"},
"ClickBrush" : {"value": "255, 255, 255, 0.10", "type": "color"},
"OnDefaultBrush" : {"value": "HighLight_at", "type": "paletterole"},
"OnHoverBrush" : { "type": "color"},
"DisableBrush" : {"value": "Button_dis", "type": "paletterole"},
@ -791,11 +807,16 @@
"PathDisableBrush" : {"value": "ButtonText_dis", "type": "paletterole"}
},
"TranslucentCheckBox":{
"DefaultPen" : {"value": "255, 255, 255, 0.35", "type": "color"},
"HoverPen" : {"value": "255, 255, 255, 0.30", "type": "color"},
"ClickPen" : {"value": "255, 255, 255, 0.25", "type": "color"},
"OnDefaultPen" : {"value": "255, 255, 255, 0.15", "type": "color"},
"OnHoverPen" : {"value": "255, 255, 255, 0.20", "type": "color"},
"OnClickPen" : {"value": "255, 255, 255, 0.10", "type": "color"},
"ContentPen" : {"value": "HighLightText_at", "type": "paletterole"},
"HoverBrush" : { "type": "color"},
"DefaultBrush" : {"value": "255, 255, 255, 0.04", "type": "color"},
"HoverBrush" : {"value": "255, 255, 255, 0.10", "type": "color"},
"ClickBrush" : {"value": "255, 255, 255, 0.20", "type": "color"},
"OnDefaultBrush" : {"value": "HighLight_at", "type": "paletterole"},
"OnHoverBrush" : { "type": "color"},
"DisableBrush" : {"value": "Button_dis", "type": "paletterole"},
@ -806,9 +827,15 @@
"RadioButton":{
"DefaultRadioButton":{
"DefaultPen" : {"value": "255, 255, 255, 0.15", "type": "color"},
"HoverPen" : {"value": "255, 255, 255, 0.15", "type": "color"},
"ClickPen" : {"value": "Mid_dis", "type": "paletterole"},
"DisablePen" : {"value": "255, 255, 255, 0.15", "type": "color"},
"OnDefaultPen" : {"value": "255, 255, 255, 0.15", "type": "color"},
"DefaultBrush" : {"value": "Button_at", "type": "paletterole"},
"HoverBrush" : {"value": "255, 255, 255, 0.15", "type": "color"},
"ClickBrush" : {"value": "255, 255, 255, 0.15", "type": "color"},
"OnDefaultBrush" : {"value": "HighLight_at", "type": "paletterole"},
"OnHoverBrush" : { "type": "color"},
"DisableBrush" : {"value": "Button_dis", "type": "paletterole"},
"ChildrenOnDefaultBrush" : {"value": "HighLightText_at", "type": "paletterole"},
"ChildrenOnHoverBrush" : {"value": "HighLightText_at", "type": "paletterole"},
@ -821,7 +848,9 @@
"HandleDefaultBrush" : {"value": "HighLight_at", "type": "paletterole"},
"HandleHoverBrush" : { "type": "color"},
"HandleDisableBrush" : {"value": "ButtonText_dis", "type": "paletterole"},
"GrooveValueDisableBrush" : {"value": "ButtonText_dis", "type": "paletterole"},
"GrooveUnvalueDefaultBrush" : {"value": "Button_at", "type": "paletterole"},
"GrooveUnvalueHoverBrush" : {"value": "Button_at", "type": "paletterole"},
"GrooveUnvalueDisableBrush" : {"value": "HighLight_dis", "type": "paletterole"},
"FocusPen" : {"value": "HighLight_at", "type": "paletterole"}
},
@ -829,6 +858,9 @@
"HandleDefaultBrush" : {"value": "HighLight_at", "type": "paletterole"},
"HandleHoverBrush" : { "type": "color"},
"HandleDisableBrush" : {"value": "ButtonText_dis", "type": "paletterole"},
"GrooveValueDisableBrush" : {"value": "ButtonText_dis", "type": "paletterole"},
"GrooveUnvalueDefaultBrush" : {"value": "255, 255, 255, 0.1","type": "color"},
"GrooveUnvalueHoverBrush" : {"value": "255, 255, 255, 0.1","type": "color"},
"GrooveUnvalueDisableBrush" : {"value": "HighLight_dis", "type": "paletterole"},
"FocusPen" : {"value": "HighLight_at", "type": "paletterole"}
}
@ -852,7 +884,8 @@
"GrooveDefaultBrush" : {"value": "Base_at", "type": "paletterole"},
"GrooveInactiveBrush" : {"value": "Base_iat", "type": "paletterole"},
"SliderDefaultBrush" : {"value": "Button_at", "type": "paletterole"},
"SliderHoverBrush" : { "type": "color"},
"SliderHoverBrush" : {"value": "Midlight_at", "type": "paletterole"},
"SliderClickBrush" : {"value": "65, 65, 65", "type": "color"},
"SliderDisableBrush" : {"value": "0, 0, 0, 0", "type": "color"}
},
"TranslucentScrollBar": {

View File

@ -339,7 +339,8 @@
"OnDefaultPen" : {"value": "83, 80, 171", "type": "color"},
"ContentPen" : {"value": "Light_at", "type": "paletterole"},
"DefaultBrush" : {"value": "Light_at", "type": "paletterole"},
"HoverBrush" : { "type": "color"},
"HoverBrush" : {"value": "115, 115, 115, 0.2 ~ 77, 77, 77, 0.2","type": "gradient"},
"ClickBrush" : {"value": "217, 217, 217", "type": "color"},
"OnDefaultBrush" : {"value": "HighLight_at", "type": "paletterole"},
"OnHoverBrush" : { "type": "gradient"},
"DisableBrush" : {"value": "Button_dis", "type": "paletterole"},
@ -347,10 +348,14 @@
"PathDisableBrush" : {"value": "140, 140, 140", "type": "color"}
},
"TranslucentCheckBox":{
"DefaultPen" : {"value": "0, 0, 0, 0.3", "type": "color"},
"HoverPen" : {"value": "0, 0, 0, 0.3", "type": "color"},
"ClickPen" : {"value": "0, 0, 0, 0.3", "type": "color"},
"OnDefaultPen" : {"value": "0, 0, 0, 0.1", "type": "color"},
"ContentPen" : {"value": "Light_at", "type": "paletterole"},
"ContentPen" : {"value": "Light_at", "type": "paletterole"},
"DefaultBrush" : {"value": "115, 115, 115, 0.2", "type": "color"},
"HoverBrush" : { "type": "gradient"},
"HoverBrush" : {"value": "95, 95, 95, 0.2 ~ 77, 77, 77, 0.2", "type": "gradient"},
"ClickBrush" : {"value": "77, 77, 77, 0.30", "type": "color"},
"OnDefaultBrush" : {"value": "HighLight_at", "type": "paletterole"},
"OnHoverBrush" : { "type": "gradient"},
"DisableBrush" : {"value": "Button_dis", "type": "paletterole"},
@ -361,10 +366,13 @@
"RadioButton":{
"DefaultRadioButton":{
"DefaultPen" : {"value": "140, 140, 140", "type": "color"},
"HoverPen" : {"value": "140, 140, 140", "type": "color"},
"ClickPen" : {"value": "140, 140, 140", "type": "color"},
"DisablePen" : {"value": "166, 166, 166", "type": "color"},
"OnDefaultPen" : {"value": "83, 80, 171", "type": "color"},
"DefaultBrush" : {"value": "Base_at", "type": "paletterole"},
"HoverBrush" : { "type": "color"},
"HoverBrush" : {"value": "0, 0, 0, 0.05", "type": "color"},
"ClickBrush" : {"value": "0, 0, 0, 0.15", "type": "color"},
"OnDefaultBrush" : {"value": "HighLight_at", "type": "paletterole"},
"OnHoverBrush" : { "type": "gradient"},
"DisableBrush" : {"value": "Button_dis", "type": "paletterole"},
@ -379,7 +387,9 @@
"HandleDefaultBrush" : {"value": "HighLight_at", "type": "paletterole"},
"HandleHoverBrush" : {"type": "gradient"},
"HandleDisableBrush" : {"value": "ButtonText_dis", "type": "paletterole"},
"GrooveValueDisableBrush" : {"value": "ButtonText_dis", "type": "paletterole"},
"GrooveUnvalueDefaultBrush" : {"value": "Button_at", "type": "paletterole"},
"GrooveUnvalueHoverBrush" : {"value": "Button_at", "type": "paletterole"},
"GrooveUnvalueDisableBrush" : {"value": "Button_dis", "type": "paletterole"},
"FocusPen" : {"value": "HighLight_at", "type": "paletterole"}
},
@ -387,6 +397,9 @@
"HandleDefaultBrush" : {"value": "HighLight_at", "type": "paletterole"},
"HandleHoverBrush" : { "type": "gradient"},
"HandleDisableBrush" : {"value": "ButtonText_dis", "type": "paletterole"},
"GrooveValueDisableBrush" : {"value": "ButtonText_dis", "type": "paletterole"},
"GrooveUnvalueDefaultBrush" : {"value": "0, 0, 0, 0.1", "type": "color"},
"GrooveUnvalueHoverBrush" : {"value": "0, 0, 0, 0.1", "type": "color"},
"GrooveUnvalueDisableBrush" : {"value": "Button_dis", "type": "paletterole"},
"FocusPen" : {"value": "HighLight_at", "type": "paletterole"}
}
@ -410,7 +423,8 @@
"GrooveDefaultBrush" : {"value": "Base_at", "type": "paletterole"},
"GrooveInactiveBrush" : {"value": "Base_iat", "type": "paletterole"},
"SliderDefaultBrush" : {"value": "Button_at", "type": "paletterole"},
"SliderHoverBrush" : { "type": "gradient"},
"SliderHoverBrush" : {"value": "218, 218, 218, 0.5 ~ 184, 184, 184, 0.5", "type": "gradient"},
"SliderClickBrush" : {"value": "184, 184, 184", "type": "color"},
"SliderDisableBrush" : {"value": "0, 0, 0, 0", "type": "color"}
},
"TranslucentScrollBar": {
@ -782,7 +796,8 @@
"OnDefaultPen" : {"value": "160, 157, 248", "type": "color"},
"ContentPen" : {"value": "BrightText_at", "type": "paletterole"},
"DefaultBrush" : {"value": "Button_at", "type": "paletterole"},
"HoverBrush" : {"type": "color"},
"HoverBrush" : {"value": "255, 255, 255, 0.15", "type": "color"},
"ClickBrush" : {"value": "255, 255, 255, 0.10", "type": "color"},
"OnDefaultBrush" : {"value": "HighLight_at", "type": "paletterole"},
"OnHoverBrush" : {"type": "gradient"},
"DisableBrush" : {"value": "Button_dis", "type": "paletterole"},
@ -790,10 +805,13 @@
"PathDisableBrush" : {"value": "140, 140, 140", "type": "color"}
},
"TranslucentCheckBox":{
"DefaultPen" : {"value": "255, 255, 255, 0.30", "type": "color"},
"HoverPen" : {"value": "255, 255, 255, 0.30", "type": "color"},
"ClickPen" : {"value": "255, 255, 255, 0.30", "type": "color"},
"OnDefaultPen" : {"value": "255, 255, 255, 0.10", "type": "color"},
"ContentPen" : {"value": "BrightText_at", "type": "paletterole"},
"DefaultBrush" : {"value": "217, 217, 217, 0.15", "type": "color"},
"HoverBrush" : { "type": "gradient"},
"HoverBrush" : {"value": "255, 255, 255, 0.2 ~ 217, 217, 217, 0.2","type": "gradient"},
"ClickBrush" : {"value": "255, 255, 255, 0.30", "type": "color"},
"OnDefaultBrush" : {"value": "HighLight_at", "type": "paletterole"},
"OnHoverBrush" : { "type": "gradient"},
@ -805,9 +823,13 @@
"RadioButton":{
"DefaultRadioButton":{
"DefaultPen" : {"value": "140, 140, 140", "type": "color"},
"HoverPen" : {"value": "140, 140, 140", "type": "color"},
"ClickPen" : {"value": "140, 140, 140", "type": "color"},
"DisablePen" : {"value": "255, 255, 255, 0.15", "type": "color"},
"OnDefaultPen" : {"value": "160, 157, 248", "type": "color"},
"DefaultBrush" : {"value": "Button_at", "type": "paletterole"},
"HoverBrush" : {"value": "255, 255, 255, 0.15", "type": "color"},
"ClickBrush" : {"value": "255, 255, 255, 0.10", "type": "color"},
"OnDefaultBrush" : {"value": "HighLight_at", "type": "paletterole"},
"OnHoverBrush" : { "type": "gradient"},
"DisableBrush" : {"value": "Button_dis", "type": "paletterole"},
@ -822,7 +844,9 @@
"HandleDefaultBrush" : {"value": "HighLight_at", "type": "paletterole"},
"HandleHoverBrush" : { "type": "gradient"},
"HandleDisableBrush" : {"value": "ButtonText_dis", "type": "paletterole"},
"GrooveValueDisableBrush" : {"value": "ButtonText_dis", "type": "paletterole"},
"GrooveUnvalueDefaultBrush" : {"value": "Button_at", "type": "paletterole"},
"GrooveUnvalueHoverBrush" : {"value": "Button_at", "type": "paletterole"},
"GrooveUnvalueDisableBrush" : {"value": "Button_dis", "type": "paletterole"},
"FocusPen" : {"value": "HighLight_at", "type": "paletterole"}
},
@ -830,6 +854,9 @@
"HandleDefaultBrush" : {"value": "HighLight_at", "type": "paletterole"},
"HandleHoverBrush" : { "type": "gradient"},
"HandleDisableBrush" : {"value": "ButtonText_dis", "type": "paletterole"},
"GrooveValueDisableBrush" : {"value": "ButtonText_dis", "type": "paletterole"},
"GrooveUnvalueDefaultBrush" : {"value": "255, 255, 255, 0.1", "type": "color"},
"GrooveUnvalueHoverBrush" : {"value": "255, 255, 255, 0.1", "type": "color"},
"GrooveUnvalueDisableBrush" : {"value": "Button_dis", "type": "paletterole"},
"FocusPen" : {"value": "HighLight_at", "type": "paletterole"}
}
@ -853,7 +880,8 @@
"GrooveDefaultBrush" : {"value": "Base_at", "type": "paletterole"},
"GrooveInactiveBrush" : {"value": "Base_iat", "type": "paletterole"},
"SliderDefaultBrush" : {"value": "Button_at", "type": "paletterole"},
"SliderHoverBrush" : { "type": "gradient"},
"SliderHoverBrush" : {"value": "95, 95, 95 ~ 65, 65, 65", "type": "gradient"},
"SliderClickBrush" : {"value": "95, 95, 95", "type": "color"},
"SliderDisableBrush" : {"value": "0, 0, 0, 0", "type": "color"}
},
"TranslucentScrollBar": {

View File

@ -2507,74 +2507,17 @@ void UKUIConfigStyleParameters::initConfigCheckBoxParameters(bool isDark, const
switch (m_adjustColorRules) {
case AdjustColorRules::DefaultRGB:{
if(checkboxColorCfg.hoverType == Obj_Color_Type) {
if(!needTranslucent) {
hoverBrush = QBrush(configMixColor(defaultBrush.color(), mix, isDark ? 0.15 : 0.05));
clickBrush = QBrush(configMixColor(defaultBrush.color(), mix, isDark ? 0.1 : 0.15));
} else {
QColor defaultColor = option->palette.color(QPalette::Active, QPalette::BrightText);
defaultColor.setAlphaF(isDark ? 0.04 : 0.05);
defaultBrush.setColor(defaultColor);
QColor defaultPenColor = option->palette.color(QPalette::Active, QPalette::BrightText);
defaultPenColor.setAlphaF(0.35);
defaultPen = QPen(QBrush(defaultPenColor), 1, Qt::SolidLine, Qt::RoundCap, Qt::RoundJoin);
QColor hoverColor = option->palette.color(QPalette::Active, QPalette::BrightText);
hoverColor.setAlphaF(isDark ? 0.10 : 0.10);
hoverBrush.setColor(hoverColor);
QColor hoverPenColor = option->palette.color(QPalette::Active, QPalette::BrightText);
hoverPenColor.setAlphaF(0.3);
hoverPen = QPen(QBrush(hoverPenColor), 1, Qt::SolidLine, Qt::RoundCap, Qt::RoundJoin);
QColor clickColor = option->palette.color(QPalette::Active, QPalette::BrightText);
clickColor.setAlphaF(isDark ? 0.20 : 0.16);
clickBrush.setColor(clickColor);
QColor clickPenColor = option->palette.color(QPalette::Active, QPalette::BrightText);
if(!isDark)
clickPenColor = option->palette.color(QPalette::Active, QPalette::Mid);
clickPenColor.setAlphaF(isDark ? 0.25 : 0.65);
clickPen = QPen(QBrush(clickPenColor), 1, Qt::SolidLine, Qt::RoundCap, Qt::RoundJoin);
}
} else if (checkboxColorCfg.hoverType == Obj_Gradient_Type) {
if (needTranslucent) {
QColor defaultColor = option->palette.color(QPalette::Active, QPalette::Mid);
if(isDark)
defaultColor = option->palette.color(QPalette::Active, QPalette::Text);
defaultColor.setAlphaF(isDark ? 0.15 : 0.20);
defaultBrush.setColor(defaultColor);
QColor defaultPenColor = option->palette.color(QPalette::Active, QPalette::BrightText);
defaultPenColor.setAlphaF(0.3);
defaultPen = QPen(QBrush(defaultPenColor), 1, Qt::SolidLine, Qt::RoundCap, Qt::RoundJoin);
QColor startColor;
QColor endColor;
QLinearGradient linearGradient;
linearGradient.setStart(option->rect.topLeft());
linearGradient.setFinalStop(option->rect.bottomLeft());
if (isDark) {
startColor = option->palette.color(QPalette::Active, QPalette::Light);
endColor = option->palette.color(QPalette::Active, QPalette::Text);
startColor.setAlphaF(0.2);
endColor.setAlphaF(0.2);
} else {
startColor = option->palette.color(QPalette::Active, QPalette::Mid);
endColor = option->palette.color(QPalette::Active, QPalette::Dark);
startColor.setAlphaF(0.2);
endColor.setAlphaF(0.2);
}
linearGradient.setColorAt(0, startColor);
linearGradient.setColorAt(1, endColor);
hoverBrush = QBrush(linearGradient);
hoverPen = defaultPen;
QColor clickColor = option->palette.color(QPalette::Active, QPalette::Dark);
if(isDark)
clickColor = option->palette.color(QPalette::Active, QPalette::Light);
clickColor.setAlphaF(0.30);
clickBrush.setColor(clickColor);
clickPen = defaultPen;
}
if (checkboxColorCfg.hoverType == Obj_Gradient_Type) {
QColor startColor;
QColor endColor;
QLinearGradient linearGradient;
linearGradient.setStart(option->rect.topLeft());
linearGradient.setFinalStop(option->rect.bottomLeft());
startColor = checkboxColorCfg.hoverGradientList.value(0);
endColor = checkboxColorCfg.hoverGradientList.value(1);
linearGradient.setColorAt(0, startColor);
linearGradient.setColorAt(1, endColor);
hoverBrush = QBrush(linearGradient);
}
if(checkboxColorCfg.onHoverType == Obj_Color_Type){
@ -2632,6 +2575,9 @@ void UKUIConfigStyleParameters::initConfigCheckBoxParameters(bool isDark, const
case AdjustColorRules::HSL:{
normalButtonColor(isDark, option->palette, defaultPen, defaultBrush, hoverPen, hoverBrush,
clickPen, clickBrush, disablePen, disableBrush);
defaultPen = QPen(checkboxColorCfg.defaultPen, 1, Qt::SolidLine, Qt::RoundCap, Qt::RoundJoin);
disablePen = QPen(checkboxColorCfg.disablePen, 1, Qt::SolidLine, Qt::RoundCap, Qt::RoundJoin);
//on default
onDefaultPen = defaultPen;
@ -2645,11 +2591,6 @@ void UKUIConfigStyleParameters::initConfigCheckBoxParameters(bool isDark, const
onClickPen = clickPen;
onClickBrush = clickBrush;
disablePen = defaultPen;
//path
pathBrush = option->palette.brush(QPalette::Active, QPalette::Text);
pathDisableBrush = option->palette.brush(QPalette::Disabled, QPalette::ButtonText);
}
default:
break;
@ -2789,9 +2730,7 @@ void UKUIConfigStyleParameters::initConfigRadioButtonParameters(bool isDark, con
QBrush childrenOnClickBrush = radioButtonColorCfg.childrenOnClickBrush;
QBrush childrenOnDisableBrush = radioButtonColorCfg.childrenOnDisableBrush;
QBrush onHoverBrush = QBrush(radioButtonColorCfg.onHoverBrush);
if(radioButtonColorCfg.onHoverType == Obj_Color_Type) {
onHoverBrush= QBrush(radioButtonColorCfg.onHoverBrush);
} else if (radioButtonColorCfg.onHoverType == Obj_Gradient_Type) {
if (radioButtonColorCfg.onHoverType == Obj_Gradient_Type) {
QLinearGradient linearGradient;
linearGradient.setStart(option->rect.topLeft());
linearGradient.setFinalStop(option->rect.bottomLeft());
@ -2807,21 +2746,21 @@ void UKUIConfigStyleParameters::initConfigRadioButtonParameters(bool isDark, con
m_RadioButtonParameters.childrenRadius =
(qstyleoption_cast<const QStyleOptionButton*>(option)->rect.adjusted(1, 1, -1, -1).width()) / 2 - 2;
//hover
hoverPen = defaultPen;
if (isDark) {
hoverBrush = QBrush(configMixColor(defaultBrush.color(), mix, 0.15));
} else {
hoverBrush = QBrush(configMixColor(defaultBrush.color(), mix, 0.05));
}
// //hover
// hoverPen = defaultPen;
// if (isDark) {
// hoverBrush = QBrush(configMixColor(defaultBrush.color(), mix, 0.15));
// } else {
// hoverBrush = QBrush(configMixColor(defaultBrush.color(), mix, 0.05));
// }
//click
clickPen = defaultPen;
if (isDark) {
clickBrush = QBrush(configMixColor(defaultBrush.color(), mix, 0.1));
} else {
clickBrush = QBrush(configMixColor(defaultBrush.color(), mix, 0.15));
}
// //click
// clickPen = defaultPen;
// if (isDark) {
// clickBrush = QBrush(configMixColor(defaultBrush.color(), mix, 0.1));
// } else {
// clickBrush = QBrush(configMixColor(defaultBrush.color(), mix, 0.15));
// }
onHoverPen = onDefaultPen;
if (radioButtonColorCfg.onHoverType == Obj_Color_Type) {
@ -2832,7 +2771,7 @@ void UKUIConfigStyleParameters::initConfigRadioButtonParameters(bool isDark, con
onHoverBrush = QBrush(configMixColor(onDefaultBrush.color(), mix, 0.05));
}
//disable
disablePen = defaultPen;
// disablePen = defaultPen;
} else if (radioButtonColorCfg.onHoverType == Obj_Gradient_Type) {
QColor startColor;
QColor endColor;
@ -2864,6 +2803,9 @@ void UKUIConfigStyleParameters::initConfigRadioButtonParameters(bool isDark, con
normalButtonColor(isDark, option->palette, defaultPen, defaultBrush, hoverPen, hoverBrush,
clickPen, clickBrush, disablePen, disableBrush);
defaultPen = QPen(radioButtonColorCfg.defaultPen, 1, Qt::SolidLine, Qt::RoundCap, Qt::RoundJoin);
disablePen = QPen(radioButtonColorCfg.disablePen, 1, Qt::SolidLine, Qt::RoundCap, Qt::RoundJoin);
//on default
onDefaultPen = defaultPen;
onDefaultBrush = defaultBrush;
@ -3086,15 +3028,6 @@ void UKUIConfigStyleParameters::initConfigSliderParameters(bool isDark, const QS
//groove value hover
grooveValueHoverBrush = grooveValueDefaultBrush;
//groove value disable
grooveValueDisableBrush = handleDisableBrush;
if(needTranslucent) {
QColor color = option->palette.color(QPalette::Active, QPalette::BrightText);
color.setAlphaF(0.1);
grooveUnvalueDefaultBrush.setColor(color);
}
grooveUnvalueHoverBrush = grooveUnvalueDefaultBrush;
} break;
case AdjustColorRules::HSL:{
if (isDark) {
@ -3112,14 +3045,6 @@ void UKUIConfigStyleParameters::initConfigSliderParameters(bool isDark, const QS
handleHoverPen.setWidth(1);
handleClickBrush = highlightClick(isDark, option->palette);
//handle disable
if (isDark) {
handleDisablePen = adjustL(option->palette.color(QPalette::Disabled, QPalette::Button), 18);
} else {
handleDisablePen = adjustL(option->palette.color(QPalette::Disabled, QPalette::Button), -12);
}
handleDisablePen.setWidth(1);
if (isDark) {
grooveValueDefaultBrush = adjustColor(option->palette.color(QPalette::Active, QPalette::Highlight), 0, -5, -15);
} else {
@ -3128,13 +3053,6 @@ void UKUIConfigStyleParameters::initConfigSliderParameters(bool isDark, const QS
//groove value hover
grooveValueHoverBrush = grooveValueDefaultBrush;
if(isDark){
sliderGroovePen = QPen(QBrush(adjustColor(option->palette.color(QPalette::Active, QPalette::Button), 0, 0, 8)),
1, Qt::SolidLine, Qt::RoundCap, Qt::RoundJoin);
} else
sliderGroovePen = QPen(QBrush(adjustColor(option->palette.color(QPalette::Active, QPalette::Button), 0, 0, -25)),
1, Qt::SolidLine, Qt::RoundCap, Qt::RoundJoin);
QRect handleRect = option->rect;
if (horizontal) {
handlePath.moveTo(handleRect.left(), handleRect.top());
@ -3332,20 +3250,8 @@ void UKUIConfigStyleParameters::initConfigProgressBarParameters(bool isDark, con
if(isDark)
contentBrush = QBrush(adjustColor(option->palette.color(QPalette::Active, QPalette::Highlight), -1, 15, -14));
endColor = contentBrush.color();
startColor = contentBrush.color();
contentPen = QPen(QColor(Qt::NoPen), 0, Qt::SolidLine, Qt::RoundCap, Qt::RoundJoin);
if(isDark){
grooveDefaultPen = QPen(QBrush(adjustColor(option->palette.color(QPalette::Active, QPalette::Button), 0, 0, 8)),
1, Qt::SolidLine, Qt::RoundCap, Qt::RoundJoin);
} else
grooveDefaultPen = QPen(QBrush(adjustColor(option->palette.color(QPalette::Active, QPalette::Button), 0, 0, -25)),
1, Qt::SolidLine, Qt::RoundCap, Qt::RoundJoin);
//groove disable
grooveDisablePen = grooveDefaultPen;
break;
default:
@ -3455,21 +3361,7 @@ void UKUIConfigStyleParameters::initConfigScrollBarParameters(bool isDark, const
switch (m_adjustColorRules) {
case AdjustColorRules::DefaultRGB:
if (!needTranslucent) {
if (scrollBarColorCfg.sliderHoverType == Obj_Color_Type) {
//slider hover
if (isDark) {
sliderHoverBrush = QBrush(configMixColor(sliderDefaultBrush.color(), mix, 0.2));
} else {
sliderHoverBrush = QBrush(configMixColor(sliderDefaultBrush.color(), mix, 0.05));
}
//slider click
if (isDark) {
sliderClickBrush = QBrush(configMixColor(sliderDefaultBrush.color(), mix, 0.05));
} else {
sliderClickBrush = QBrush(configMixColor(sliderDefaultBrush.color(), mix, 0.2));
}
} else if (scrollBarColorCfg.sliderHoverType == Obj_Gradient_Type) {
if (scrollBarColorCfg.sliderHoverType == Obj_Gradient_Type) {
if (bar->orientation == Qt::Horizontal) {
linearGradient.setStart(option->rect.topLeft());
linearGradient.setFinalStop(option->rect.bottomLeft());
@ -3477,36 +3369,14 @@ void UKUIConfigStyleParameters::initConfigScrollBarParameters(bool isDark, const
linearGradient.setStart(option->rect.topRight());
linearGradient.setFinalStop(option->rect.topLeft());
}
QColor color = option->palette.color(QPalette::Active, QPalette::Button);
if (isDark) {
startColor = configMixColor(color, QColor(Qt::white), 0.2);
endColor = configMixColor(color, QColor(Qt::white), 0.05);
} else {
startColor = configMixColor(color, QColor(Qt::black), 0.05);
endColor = configMixColor(color, QColor(Qt::black), 0.2);
}
startColor = scrollBarColorCfg.sliderHoverGradientList.value(0);
endColor = scrollBarColorCfg.sliderHoverGradientList.value(1);
linearGradient.setColorAt(0, startColor);
linearGradient.setColorAt(1, endColor);
sliderHoverBrush = QBrush(linearGradient);
sliderClickBrush = QBrush(configMixColor(sliderDefaultBrush.color(), mix, 0.2));
}
}
break;
case HSL:
//slider hover
if (isDark) {
sliderHoverBrush = buttonDarkClick(isDark, option->palette);
}
//slider click
if (isDark) {
sliderClickBrush = adjustL(option->palette.color(QPalette::Active, QPalette::Button), 13);
} else {
sliderClickBrush = adjustL(option->palette.color(QPalette::Active, QPalette::Button), -45);
}
break;
default:
break;

View File

@ -2680,7 +2680,7 @@ void UKUIConfigStyle::drawPrimitive(QStyle::PrimitiveElement element, const QSty
pen.color().setAlphaF(sp->m_CheckBoxParameters.checkBoxDefaultPen.color().alphaF() * (1.0 - value));
painter->setPen(pen);
QColor defaultColor = mouseOver ? (sp->m_CheckBoxParameters.onHoverBrushIslinearGradient ?
sp->m_CheckBoxParameters.checkBoxHoverBrush.color() : sp->m_CheckBoxParameters.checkBoxDefaultBrush.color()):
sp->m_CheckBoxParameters.checkBoxClickBrush.color() : sp->m_CheckBoxParameters.checkBoxDefaultBrush.color()):
sp->m_CheckBoxParameters.checkBoxDefaultBrush.color();
QColor onDefaultColor = mouseOver ? sp->m_CheckBoxParameters.checkBoxOnClickBrush.color() : sp->m_CheckBoxParameters.checkBoxOnClickBrush.color();
QBrush brush(QColor(defaultColor.red() + value * (onDefaultColor.red() - defaultColor.red()),
@ -6051,6 +6051,7 @@ void UKUIConfigStyle::drawControl(QStyle::ControlElement element, const QStyleOp
proxy()->drawPrimitive(PE_PanelItemViewItem, option, painter, widget);
if (vi->features & QStyleOptionViewItem::HasCheckIndicator) {
QStyleOptionButton option;
option.rect = checkRect;