diff options
author | csaba <csaba> | 2024-05-13 12:55:52 (GMT) |
---|---|---|
committer | csaba <csaba> | 2024-05-13 12:55:52 (GMT) |
commit | 645e704d85418ea761b72d4fb0e275219ba2183f (patch) | |
tree | 3b4f158e35d24de5450601a28f8146542af1d5cd /generic | |
parent | d28b9c27801b919bbfa99fd7576015e9ed77cb34 (diff) | |
download | tk-645e704d85418ea761b72d4fb0e275219ba2183f.zip tk-645e704d85418ea761b72d4fb0e275219ba2183f.tar.gz tk-645e704d85418ea761b72d4fb0e275219ba2183f.tar.bz2 |
Better way to set the borderwidth of two style elements of the "classic" theme to 2.
Diffstat (limited to 'generic')
-rw-r--r-- | generic/ttk/ttkElements.c | 28 |
1 files changed, 14 insertions, 14 deletions
diff --git a/generic/ttk/ttkElements.c b/generic/ttk/ttkElements.c index f136a21..da96c90 100644 --- a/generic/ttk/ttkElements.c +++ b/generic/ttk/ttkElements.c @@ -730,10 +730,10 @@ static Ttk_ElementOptionSpec MenuIndicatorElementOptions[] = { Tk_Offset(MenuIndicatorElement,widthObj), "4.0m" }, { "-indicatorheight", TK_OPTION_PIXELS, Tk_Offset(MenuIndicatorElement,heightObj), "1.7m" }, - { "-borderwidth", TK_OPTION_PIXELS, + { "-indicatorborderwidth", TK_OPTION_PIXELS, Tk_Offset(MenuIndicatorElement,borderWidthObj), DEFAULT_BORDERWIDTH }, { "-indicatorrelief", TK_OPTION_RELIEF, - Tk_Offset(MenuIndicatorElement,reliefObj),"raised" }, + Tk_Offset(MenuIndicatorElement,reliefObj), "raised" }, { "-indicatormargin", TK_OPTION_STRING, Tk_Offset(MenuIndicatorElement,marginObj), "5 0" }, { NULL, 0, 0, NULL } @@ -1085,18 +1085,18 @@ typedef struct { } SliderElement; static Ttk_ElementOptionSpec SliderElementOptions[] = { - { "-sliderlength", TK_OPTION_PIXELS, Tk_Offset(SliderElement,lengthObj), - "30" }, - { "-sliderthickness",TK_OPTION_PIXELS,Tk_Offset(SliderElement,thicknessObj), - "15" }, - { "-sliderrelief", TK_OPTION_RELIEF, Tk_Offset(SliderElement,reliefObj), - "raised" }, - { "-borderwidth", TK_OPTION_PIXELS, Tk_Offset(SliderElement,borderWidthObj), - DEFAULT_BORDERWIDTH }, - { "-background", TK_OPTION_BORDER, Tk_Offset(SliderElement,borderObj), - DEFAULT_BACKGROUND }, - { "-orient", TK_OPTION_ANY, Tk_Offset(SliderElement,orientObj), - "horizontal" }, + { "-sliderlength", TK_OPTION_PIXELS, + Tk_Offset(SliderElement,lengthObj), "30" }, + { "-sliderthickness", TK_OPTION_PIXELS, + Tk_Offset(SliderElement,thicknessObj), "15" }, + { "-sliderrelief", TK_OPTION_RELIEF, + Tk_Offset(SliderElement,reliefObj), "raised" }, + { "-sliderborderwidth", TK_OPTION_PIXELS, + Tk_Offset(SliderElement,borderWidthObj), DEFAULT_BORDERWIDTH }, + { "-background", TK_OPTION_BORDER, + Tk_Offset(SliderElement,borderObj), DEFAULT_BACKGROUND }, + { "-orient", TK_OPTION_ANY, + Tk_Offset(SliderElement,orientObj), "horizontal" }, { NULL, 0, 0, NULL } }; |