Skip to content

Commit d65d735

Browse files
committed
Improving font icon.
1 parent 3748fae commit d65d735

File tree

4 files changed

+67
-1
lines changed

4 files changed

+67
-1
lines changed

data/com.github.phase1geo.annotator.gresource.xml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -44,6 +44,8 @@
4444
<file alias="image-crop-dark-symbolic.svg">images/icons/scalable/image-crop-dark-symbolic.svg</file>
4545
<file alias="eyedropper-symbolic.svg">images/icons/scalable/eyedropper-svgrepo-com.svg</file>
4646
<file alias="eyedropper-dark-symbolic.svg">images/icons/scalable/eyedropper-dark-svgrepo-com.svg</file>
47+
<file alias="font-symbolic.svg">images/icons/scalable/font-symbolic.svg</file>
48+
<file alias="font-dark-symbolic.svg">images/icons/scalable/font-dark-symbolic.svg</file>
4749

4850
<file alias="sticker_data_encryption">images/icons/flat-color-icons/svg/data_encryption.svg</file>
4951
<file alias="sticker_factory_breakdown">images/icons/flat-color-icons/svg/factory_breakdown.svg</file>
Lines changed: 30 additions & 0 deletions
Loading
Lines changed: 30 additions & 0 deletions
Loading

src/CanvasToolbar.vala

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -685,13 +685,17 @@ public class CanvasToolbar : Box {
685685
private void create_fonts() {
686686

687687
var mb = new MenuButton() {
688-
icon_name = "font-x-generic-symbolic",
688+
icon_name = "font-symbolic",
689689
tooltip_text = _( "Font Properties" ),
690690
has_frame = false,
691691
popover = new Popover()
692692
};
693693
mb.get_style_context().add_class( "color_chooser" );
694694

695+
_canvas.win.theme_changed.connect((dark_mode) => {
696+
mb.icon_name = dark_mode ? "font-dark-symbolic" : "font-symbolic";
697+
});
698+
695699
_font_chooser = new FontChooserWidget() {
696700
margin_start = 10,
697701
margin_end = 10,

0 commit comments

Comments
 (0)