Skip to content

Commit c1a1855

Browse files
authored
chore: Align icons to editor scale and theme (#525)
Originally, netfox was shipping with 16x16 SVGs for icons. These didn't work for hi-dpi screens, as Godot wouldn't scale them. So the second approach was to ship these SVGs scaled up, so they would have enough resolution for larger screens, and would be scaled down for smaller screens. Turns out, Godot has two import settings, to scale the SVG with the editor scale, and to change its colors based on editor theme.
1 parent 6761547 commit c1a1855

21 files changed

+429
-161
lines changed

addons/netfox.extras/icons/network-rigid-body-2d.svg

Lines changed: 28 additions & 12 deletions
Loading

addons/netfox.extras/icons/network-rigid-body-2d.svg.import

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@ type="CompressedTexture2D"
55
uid="uid://bhm6yivew52yv"
66
path="res://.godot/imported/network-rigid-body-2d.svg-c7ef7df16c4383a80b842fa966aa7aea.ctex"
77
metadata={
8+
"has_editor_variant": true,
89
"vram_texture": false
910
}
1011

@@ -33,5 +34,5 @@ process/hdr_clamp_exposure=false
3334
process/size_limit=0
3435
detect_3d/compress_to=1
3536
svg/scale=1.0
36-
editor/scale_with_editor_scale=false
37-
editor/convert_colors_with_editor_theme=false
37+
editor/scale_with_editor_scale=true
38+
editor/convert_colors_with_editor_theme=true

addons/netfox.extras/icons/network-rigid-body-3d.svg

Lines changed: 11 additions & 11 deletions
Loading

addons/netfox.extras/icons/network-rigid-body-3d.svg.import

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@ type="CompressedTexture2D"
55
uid="uid://b2lri7ofmq6a7"
66
path="res://.godot/imported/network-rigid-body-3d.svg-325e3a4834ddab37f186912ac93fa449.ctex"
77
metadata={
8+
"has_editor_variant": true,
89
"vram_texture": false
910
}
1011

@@ -33,5 +34,5 @@ process/hdr_clamp_exposure=false
3334
process/size_limit=0
3435
detect_3d/compress_to=1
3536
svg/scale=1.0
36-
editor/scale_with_editor_scale=false
37-
editor/convert_colors_with_editor_theme=false
37+
editor/scale_with_editor_scale=true
38+
editor/convert_colors_with_editor_theme=true

addons/netfox.extras/icons/rewindable-state-machine.svg

Lines changed: 30 additions & 28 deletions
Loading

addons/netfox.extras/icons/rewindable-state-machine.svg.import

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@ type="CompressedTexture2D"
55
uid="uid://cx8j75i6acsic"
66
path="res://.godot/imported/rewindable-state-machine.svg-87ca202891a7e2319363a5e2f5387494.ctex"
77
metadata={
8+
"has_editor_variant": true,
89
"vram_texture": false
910
}
1011

@@ -33,5 +34,5 @@ process/hdr_clamp_exposure=false
3334
process/size_limit=0
3435
detect_3d/compress_to=1
3536
svg/scale=1.0
36-
editor/scale_with_editor_scale=false
37-
editor/convert_colors_with_editor_theme=false
37+
editor/scale_with_editor_scale=true
38+
editor/convert_colors_with_editor_theme=true

addons/netfox.extras/icons/rewindable-state.svg

Lines changed: 28 additions & 24 deletions
Loading

addons/netfox.extras/icons/rewindable-state.svg.import

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@ type="CompressedTexture2D"
55
uid="uid://dsxkv3ufy1r2q"
66
path="res://.godot/imported/rewindable-state.svg-b534e5a6f5de20b3fe0b63d612bd36bf.ctex"
77
metadata={
8+
"has_editor_variant": true,
89
"vram_texture": false
910
}
1011

@@ -33,5 +34,5 @@ process/hdr_clamp_exposure=false
3334
process/size_limit=0
3435
detect_3d/compress_to=1
3536
svg/scale=1.0
36-
editor/scale_with_editor_scale=false
37-
editor/convert_colors_with_editor_theme=false
37+
editor/scale_with_editor_scale=true
38+
editor/convert_colors_with_editor_theme=true

0 commit comments

Comments
 (0)