Skip to content

Commit ce7f6c2

Browse files
authored
Fixed missing icons & comment node style in classic theme (contributed by williamchange)
Fix missing icons & comment node style in classic theme
2 parents 9f5ce6d + 591b90f commit ce7f6c2

2 files changed

Lines changed: 61 additions & 0 deletions

File tree

material_maker/nodes/comment/comment.gd

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -245,3 +245,13 @@ func _on_title_edit_ready() -> void:
245245
func _on_text_ready() -> void:
246246
%Text.get_menu().about_to_popup.connect(
247247
_context_menu_about_to_popup.bind(%Text.get_menu()))
248+
249+
func _notification(what: int) -> void:
250+
match what:
251+
NOTIFICATION_THEME_CHANGED:
252+
if "classic" in mm_globals.main_window.theme.resource_path:
253+
%Text.add_theme_stylebox_override("normal", StyleBoxEmpty.new())
254+
%Text.add_theme_stylebox_override("read_only", StyleBoxEmpty.new())
255+
else:
256+
%Text.remove_theme_stylebox_override("normal")
257+
%Text.remove_theme_stylebox_override("read_only")

material_maker/theme/classic_base.tres

Lines changed: 51 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -288,6 +288,32 @@ border_color = Color(1, 0.560784, 0.560784, 1)
288288

289289
[sub_resource type="StyleBoxEmpty" id="StyleBoxEmpty_p6o2d"]
290290

291+
[sub_resource type="AtlasTexture" id="AtlasTexture_r3dd5"]
292+
atlas = ExtResource("1_fw8f4")
293+
region = Rect2(32, 176, 16, 16)
294+
295+
[sub_resource type="StyleBoxFlat" id="StyleBoxFlat_asgc8"]
296+
border_width_left = 1
297+
border_width_top = 1
298+
border_width_right = 1
299+
border_width_bottom = 1
300+
border_color = Color(0.498039, 0.498039, 0.498039, 0)
301+
corner_radius_top_left = 4
302+
corner_radius_top_right = 4
303+
corner_radius_bottom_right = 4
304+
corner_radius_bottom_left = 4
305+
306+
[sub_resource type="StyleBoxFlat" id="StyleBoxFlat_en6gw"]
307+
border_width_left = 1
308+
border_width_top = 1
309+
border_width_right = 1
310+
border_width_bottom = 1
311+
border_color = Color(0.485703, 0.485704, 0.485703, 1)
312+
corner_radius_top_left = 4
313+
corner_radius_top_right = 4
314+
corner_radius_bottom_right = 4
315+
corner_radius_bottom_left = 4
316+
291317
[sub_resource type="AtlasTexture" id="AtlasTexture_nmkov"]
292318
atlas = ExtResource("1_fw8f4")
293319
region = Rect2(16, 224, 16, 16)
@@ -372,6 +398,10 @@ region = Rect2(64, 128, 16, 16)
372398
metadata/scale = 1.0
373399
metadata/recolor = true
374400

401+
[sub_resource type="AtlasTexture" id="AtlasTexture_dnklm"]
402+
atlas = ExtResource("1_fw8f4")
403+
region = Rect2(112, 176, 16, 16)
404+
375405
[sub_resource type="AtlasTexture" id="AtlasTexture_q32qs"]
376406
atlas = ExtResource("1_fw8f4")
377407
region = Rect2(32, 48, 16, 16)
@@ -380,6 +410,10 @@ region = Rect2(32, 48, 16, 16)
380410
atlas = ExtResource("1_fw8f4")
381411
region = Rect2(48, 48, 16, 16)
382412

413+
[sub_resource type="AtlasTexture" id="AtlasTexture_7ns35"]
414+
atlas = ExtResource("1_fw8f4")
415+
region = Rect2(64, 160, 16, 16)
416+
383417
[sub_resource type="AtlasTexture" id="AtlasTexture_agwde"]
384418
atlas = ExtResource("1_fw8f4")
385419
region = Rect2(32, 16, 16, 16)
@@ -404,6 +438,14 @@ region = Rect2(16, 0, 16, 16)
404438
atlas = ExtResource("1_fw8f4")
405439
region = Rect2(0, 32, 16, 16)
406440

441+
[sub_resource type="AtlasTexture" id="AtlasTexture_64fc4"]
442+
atlas = ExtResource("1_fw8f4")
443+
region = Rect2(112, 192, 16, 16)
444+
445+
[sub_resource type="AtlasTexture" id="AtlasTexture_c7xvc"]
446+
atlas = ExtResource("1_fw8f4")
447+
region = Rect2(80, 32, 16, 16)
448+
407449
[sub_resource type="AtlasTexture" id="AtlasTexture_m27ao"]
408450
atlas = ExtResource("1_fw8f4")
409451
region = Rect2(80, 80, 16, 16)
@@ -1031,6 +1073,9 @@ MM_AddNodePanel/styles/panel = SubResource("StyleBoxFlat_f0kci")
10311073
MM_AddNodePanelList/base_type = &"ItemList"
10321074
MM_AddNodePanelList/font_sizes/font_size = 14
10331075
MM_AddNodePanelList/styles/focus = SubResource("StyleBoxEmpty_p6o2d")
1076+
MM_CommentNode/icons/resizer = SubResource("AtlasTexture_r3dd5")
1077+
MM_CommentNode/styles/default = SubResource("StyleBoxFlat_asgc8")
1078+
MM_CommentNode/styles/selected = SubResource("StyleBoxFlat_en6gw")
10341079
MM_CurveIcons/icons/bevel = SubResource("AtlasTexture_nmkov")
10351080
MM_CurveIcons/icons/bounce = SubResource("AtlasTexture_ppdpb")
10361081
MM_CurveIcons/icons/easein = SubResource("AtlasTexture_btb0w")
@@ -1048,17 +1093,23 @@ MM_FlexibleTab/icons/undock = SubResource("AtlasTexture_gvlse")
10481093
MM_Icons/icons/2D_preview = SubResource("AtlasTexture_1yu4y")
10491094
MM_Icons/icons/3D_preview = SubResource("AtlasTexture_ao7ds")
10501095
MM_Icons/icons/3D_preview_control = SubResource("AtlasTexture_hht3q")
1096+
MM_Icons/icons/add_image = SubResource("AtlasTexture_dnklm")
10511097
MM_Icons/icons/arrow_left = SubResource("AtlasTexture_q32qs")
10521098
MM_Icons/icons/arrow_right = SubResource("AtlasTexture_r3xak")
1099+
MM_Icons/icons/arrow_updown = SubResource("AtlasTexture_dnklm")
1100+
MM_Icons/icons/color_picker = SubResource("AtlasTexture_7ns35")
10531101
MM_Icons/icons/delete = SubResource("AtlasTexture_agwde")
10541102
MM_Icons/icons/draw = SubResource("AtlasTexture_oy0ko")
10551103
MM_Icons/icons/dropdown = SubResource("AtlasTexture_2gawd")
10561104
MM_Icons/icons/environment = SubResource("AtlasTexture_x8swe")
10571105
MM_Icons/icons/export = SubResource("AtlasTexture_5e0gw")
10581106
MM_Icons/icons/folder = SubResource("AtlasTexture_rqlqa")
1107+
MM_Icons/icons/function = SubResource("AtlasTexture_64fc4")
1108+
MM_Icons/icons/link = SubResource("AtlasTexture_c7xvc")
10591109
MM_Icons/icons/lock_locked = SubResource("AtlasTexture_m27ao")
10601110
MM_Icons/icons/lock_unlocked = SubResource("AtlasTexture_asgc8")
10611111
MM_Icons/icons/model = SubResource("AtlasTexture_dsr33")
1112+
MM_Icons/icons/paste_image = SubResource("AtlasTexture_64fc4")
10621113
MM_Icons/icons/pin_pinned = SubResource("AtlasTexture_du4od")
10631114
MM_Icons/icons/pin_unpinned = SubResource("AtlasTexture_nkmvd")
10641115
MM_Icons/icons/reset_view = SubResource("AtlasTexture_lsxnf")

0 commit comments

Comments
 (0)