Commit 41118fd 1 parent 2d80ca0 commit 41118fd Copy full SHA for 41118fd
File tree 3 files changed +9
-3
lines changed
3 files changed +9
-3
lines changed Original file line number Diff line number Diff line change @@ -18,4 +18,5 @@ Bruno Dupuis
18
18
Christopher Noel Hesse
19
19
Marcin Zając
20
20
Laura Gallo
21
+ Tim Murison
21
22
Manmeet Singh
Original file line number Diff line number Diff line change @@ -93,6 +93,7 @@ You can find its changes [documented below](#070---2021-01-01).
93
93
94
94
### Fixed
95
95
96
+ - Centre checkmark in checkbox ([ #2036 ] by [ @agentsim ] )
96
97
- ` Notification ` s will not be delivered to the widget that sends them ([ #1640 ] by [ @cmyr ] )
97
98
- ` TextBox ` can handle standard keyboard shortcuts without needing menus ([ #1660 ] by [ @cmyr ] )
98
99
- GTK Shell: Prevent mangling of newline characters in clipboard ([ #1695 ] by [ @ForLoveOfCats ] )
@@ -526,6 +527,7 @@ Last release without a changelog :(
526
527
[ @lisael ] : https://github.com/lisael
527
528
[ @jenra-uwu ] : https://github.com/jenra-uwu
528
529
[ @klemensn ] : https://github.com/klemensn
530
+ [ @agentsim ] : https://github.com/agentsim
529
531
[ @jplatte ] : https://github.com/jplatte
530
532
531
533
[ #599 ] : https://github.com/linebender/druid/pull/599
@@ -806,6 +808,7 @@ Last release without a changelog :(
806
808
[ #1978 ] : https://github.com/linebender/druid/pull/1978
807
809
[ #1993 ] : https://github.com/linebender/druid/pull/1993
808
810
[ #1996 ] : https://github.com/linebender/druid/pull/1996
811
+ [ #2036 ] : https://github.com/linebender/druid/pull/2036
809
812
[ #2064 ] : https://github.com/linebender/druid/pull/2064
810
813
811
814
[ Unreleased ] : https://github.com/linebender/druid/compare/v0.7.0...master
Original file line number Diff line number Diff line change @@ -139,10 +139,12 @@ impl Widget<bool> for Checkbox {
139
139
140
140
if * data {
141
141
// Paint the checkmark
142
+ let x_offset = ( rect. width ( ) - 10.0 ) / 2.0 ;
143
+ let y_offset = ( rect. height ( ) - 8.0 ) / 2.0 ;
142
144
let mut path = BezPath :: new ( ) ;
143
- path. move_to ( ( 4.0 , 9 .0) ) ;
144
- path. line_to ( ( 8 .0, 13 .0) ) ;
145
- path. line_to ( ( 14 .0, 5.0 ) ) ;
145
+ path. move_to ( ( x_offset , y_offset + 4 .0) ) ;
146
+ path. line_to ( ( x_offset + 4 .0, y_offset + 8 .0) ) ;
147
+ path. line_to ( ( x_offset + 10 .0, y_offset ) ) ;
146
148
147
149
let style = StrokeStyle :: new ( )
148
150
. line_cap ( LineCap :: Round )
You can’t perform that action at this time.
0 commit comments