Attachment "ttkdefaults.diff" to
ticket [089da4d2]
added by
emiliano
2024-07-25 00:21:05.
Index: generic/ttk/ttkScale.c
==================================================================
--- generic/ttk/ttkScale.c
+++ generic/ttk/ttkScale.c
@@ -506,17 +506,21 @@
ScaleDoLayout, /* layoutProc */
TtkWidgetDisplay /* displayProc */
};
TTK_BEGIN_LAYOUT(VerticalScaleLayout)
- TTK_GROUP("Vertical.Scale.trough", TTK_FILL_BOTH,
- TTK_NODE("Vertical.Scale.slider", TTK_PACK_TOP) )
+ TTK_GROUP("Vertical.Scale.focus", TTK_FILL_BOTH,
+ TTK_GROUP("Vertical.Scale.padding", TTK_FILL_BOTH,
+ TTK_GROUP("Vertical.Scale.trough", TTK_FILL_BOTH,
+ TTK_NODE("Vertical.Scale.slider", TTK_PACK_TOP) ) ) )
TTK_END_LAYOUT
TTK_BEGIN_LAYOUT(HorizontalScaleLayout)
- TTK_GROUP("Horizontal.Scale.trough", TTK_FILL_BOTH,
- TTK_NODE("Horizontal.Scale.slider", TTK_PACK_LEFT) )
+ TTK_GROUP("Horizontal.Scale.focus", TTK_FILL_BOTH,
+ TTK_GROUP("Horizontal.Scale.padding", TTK_FILL_BOTH,
+ TTK_GROUP("Horizontal.Scale.trough", TTK_FILL_BOTH,
+ TTK_NODE("Horizontal.Scale.slider", TTK_PACK_LEFT) ) ) )
TTK_END_LAYOUT
/*
* Initialization.
*/
Index: library/ttk/defaults.tcl
==================================================================
--- library/ttk/defaults.tcl
+++ library/ttk/defaults.tcl
@@ -187,10 +187,11 @@
ttk::style configure Treeview \
-background $colors(-window) \
-stripedbackground $colors(-alternate) \
-fieldbackground $colors(-window) \
-foreground $colors(-text) \
+ -focuswidth 1 -focuscolor $colors(-selectbg) \
-indent 15p
ttk::setTreeviewRowHeight
ttk::style configure Treeview.Separator \
-background $colors(-alternate)
ttk::style map Treeview \