Skip to content

Commit

Permalink
Fixing colors of shapes in dropdowns.
Browse files Browse the repository at this point in the history
phase1geo committed Oct 21, 2024
1 parent ece0039 commit 1397ac1
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/CanvasToolbar.vala
Original file line number Diff line number Diff line change
@@ -133,6 +133,9 @@ public class CanvasToolbar : Box {
margin_bottom = 5,
tooltip_markup = shape_type.tooltip(),
};
_canvas.win.theme_changed.connect((dark) => {
b.icon_name = shape_type.icon_name( dark );
});
b.clicked.connect(() => {
_current_item.get( category ).canvas_item( shape_type );
_current_item.get( category ).add_item( _canvas.items );

0 comments on commit 1397ac1

Please sign in to comment.