File tree 2 files changed +15
-0
lines changed
2 files changed +15
-0
lines changed Original file line number Diff line number Diff line change 5
5
### Added
6
6
- Added ` disabled ` prop for individual options on a ` SegmentedControl ` #451 by @petefine
7
7
8
+ ### Fixed
9
+ - Styled the figure buttons in the "mantine_light" and "mantine_dark" Plotly figure templates. #456 by @AnnMarieW
10
+
11
+
8
12
# 0.15.1
9
13
10
14
### Added
Original file line number Diff line number Diff line change @@ -50,6 +50,9 @@ def add_figure_templates(default=None):
50
50
"paper_bgcolor" : "#ffffff" , # mantine background color
51
51
"plot_bgcolor" : "#ffffff" ,
52
52
"gridcolor" : "#dee2e6" ,
53
+ "button_bg" : colors ["gray" ][5 ],
54
+ "button_active" : colors ["gray" ][6 ],
55
+ "button_text" : "white"
53
56
},
54
57
"dark" : {
55
58
"colorway" : [
@@ -59,6 +62,9 @@ def add_figure_templates(default=None):
59
62
"paper_bgcolor" : colors ["dark" ][7 ], # mantine background color
60
63
"plot_bgcolor" : colors ["dark" ][7 ],
61
64
"gridcolor" : "#343a40" ,
65
+ "button_bg" : colors ["gray" ][7 ],
66
+ "button_active" : colors ["gray" ][6 ],
67
+ "button_text" : "white"
62
68
}
63
69
}
64
70
@@ -84,6 +90,11 @@ def make_template(name):
84
90
axis .gridwidth = 0.5
85
91
axis .zerolinecolor = theme_config ["gridcolor" ]
86
92
93
+ # Range selector buttons settings
94
+ layout .xaxis .rangeselector .font .color = theme_config ["button_text" ]
95
+ layout .xaxis .rangeselector .activecolor = theme_config ["button_active" ]
96
+ layout .xaxis .rangeselector .bgcolor = theme_config ["button_bg" ]
97
+
87
98
# Geo settings
88
99
layout .geo .bgcolor = theme_config ["plot_bgcolor" ]
89
100
layout .geo .lakecolor = theme_config ["plot_bgcolor" ]
You can’t perform that action at this time.
0 commit comments