Skip to content

Commit 5c24c11

Browse files
committed
feat: improve ui
1 parent 5070654 commit 5c24c11

36 files changed

Lines changed: 371 additions & 461 deletions

src/main_theme.tres

Lines changed: 145 additions & 145 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
[gd_resource type="Theme" format=3 uid="uid://3as6f5nxctip"]
22

3-
[ext_resource type="FontFile" path="res://src/fonts/Archivo-Variable.ttf" id="1_wl8xb"]
4-
[ext_resource type="FontFile" path="res://src/fonts/IBMPlexMono-Regular.ttf" id="2_2ui85"]
5-
[ext_resource type="FontFile" path="res://src/fonts/IBMPlexMono-Medium.ttf" id="3_rb85j"]
3+
[ext_resource type="FontFile" uid="uid://b1pheek1rg8pw" path="res://src/fonts/Archivo-Variable.ttf" id="1_wl8xb"]
4+
[ext_resource type="FontFile" uid="uid://bvxx1ggybj300" path="res://src/fonts/IBMPlexMono-Regular.ttf" id="2_2ui85"]
5+
[ext_resource type="FontFile" uid="uid://budo5l7eggqxd" path="res://src/fonts/IBMPlexMono-Medium.ttf" id="3_rb85j"]
66

77
[sub_resource type="FontVariation" id="FontVariation_wl8xb"]
88
base_font = ExtResource("1_wl8xb")
@@ -64,6 +64,36 @@ border_width_right = 1
6464
border_width_bottom = 1
6565
border_color = Color(0.9516, 0.9487, 0.9281, 1)
6666

67+
[sub_resource type="StyleBoxEmpty" id="StyleBoxEmpty_snrae"]
68+
content_margin_left = 4.0
69+
content_margin_top = 8.0
70+
content_margin_right = 4.0
71+
content_margin_bottom = 12.0
72+
73+
[sub_resource type="StyleBoxFlat" id="StyleBoxFlat_checkhover"]
74+
bg_color = Color(0, 0, 0, 0)
75+
border_width_left = 1
76+
border_width_top = 1
77+
border_width_right = 1
78+
border_width_bottom = 1
79+
border_color = Color(0.9516, 0.9487, 0.9281, 0.95)
80+
81+
[sub_resource type="StyleBoxFlat" id="StyleBoxFlat_checkon"]
82+
bg_color = Color(0.9516, 0.9487, 0.9281, 0.95)
83+
border_width_left = 1
84+
border_width_top = 1
85+
border_width_right = 1
86+
border_width_bottom = 1
87+
border_color = Color(0.9516, 0.9487, 0.9281, 0.95)
88+
89+
[sub_resource type="StyleBoxFlat" id="StyleBoxFlat_checknorm"]
90+
bg_color = Color(0, 0, 0, 0)
91+
border_width_left = 1
92+
border_width_top = 1
93+
border_width_right = 1
94+
border_width_bottom = 1
95+
border_color = Color(0.6007, 0.5976, 0.5761, 0.7)
96+
6797
[sub_resource type="FontVariation" id="FontVariation_vmx4g"]
6898
base_font = ExtResource("2_2ui85")
6999

@@ -371,12 +401,81 @@ content_margin_bottom = 12.0
371401
bg_color = Color(0.6007, 0.5976, 0.5761, 1)
372402
border_color = Color(0.6007, 0.5976, 0.5761, 1)
373403

374-
[sub_resource type="StyleBoxEmpty" id="StyleBoxEmpty_snrae"]
375-
content_margin_left = 4.0
376-
content_margin_top = 8.0
377-
content_margin_right = 4.0
404+
[sub_resource type="StyleBoxFlat" id="StyleBoxFlat_scard"]
405+
bg_color = Color(0, 0, 0, 0)
406+
border_width_left = 1
407+
border_width_top = 1
408+
border_width_right = 1
409+
border_width_bottom = 1
410+
border_color = Color(0.9516, 0.9487, 0.9281, 0.16)
411+
412+
[sub_resource type="StyleBoxFlat" id="StyleBoxFlat_scard_hover"]
413+
bg_color = Color(0.9516, 0.9487, 0.9281, 0.03)
414+
border_width_left = 1
415+
border_width_top = 1
416+
border_width_right = 1
417+
border_width_bottom = 1
418+
border_color = Color(0.9516, 0.9487, 0.9281, 0.34)
419+
420+
[sub_resource type="StyleBoxFlat" id="StyleBoxFlat_scard_on"]
421+
bg_color = Color(0.9516, 0.9487, 0.9281, 0.07)
422+
border_width_left = 1
423+
border_width_top = 1
424+
border_width_right = 1
425+
border_width_bottom = 1
426+
border_color = Color(0.9516, 0.9487, 0.9281, 0.9)
427+
428+
[sub_resource type="StyleBoxFlat" id="StyleBoxFlat_segnorm"]
429+
content_margin_left = 18.0
430+
content_margin_top = 9.0
431+
content_margin_right = 18.0
432+
content_margin_bottom = 9.0
433+
bg_color = Color(0, 0, 0, 0)
434+
border_width_left = 1
435+
border_width_top = 1
436+
border_width_right = 1
437+
border_width_bottom = 1
438+
border_color = Color(0.9516, 0.9487, 0.9281, 0.14)
439+
440+
[sub_resource type="StyleBoxFlat" id="StyleBoxFlat_seghover"]
441+
content_margin_left = 18.0
442+
content_margin_top = 9.0
443+
content_margin_right = 18.0
444+
content_margin_bottom = 9.0
445+
bg_color = Color(0, 0, 0, 0)
446+
border_width_left = 1
447+
border_width_top = 1
448+
border_width_right = 1
449+
border_width_bottom = 1
450+
border_color = Color(0.9516, 0.9487, 0.9281, 0.5)
451+
452+
[sub_resource type="StyleBoxFlat" id="StyleBoxFlat_segon"]
453+
content_margin_left = 18.0
454+
content_margin_top = 9.0
455+
content_margin_right = 18.0
456+
content_margin_bottom = 9.0
457+
bg_color = Color(0.9516, 0.9487, 0.9281, 0.08)
458+
border_width_left = 1
459+
border_width_top = 1
460+
border_width_right = 1
461+
border_width_bottom = 1
462+
border_color = Color(0.9516, 0.9487, 0.9281, 0.95)
463+
464+
[sub_resource type="StyleBoxEmpty" id="StyleBoxEmpty_sidenav"]
465+
content_margin_left = 16.0
466+
content_margin_top = 12.0
467+
content_margin_right = 16.0
378468
content_margin_bottom = 12.0
379469

470+
[sub_resource type="StyleBoxFlat" id="StyleBoxFlat_sidenav_on"]
471+
content_margin_left = 16.0
472+
content_margin_top = 12.0
473+
content_margin_right = 16.0
474+
content_margin_bottom = 12.0
475+
bg_color = Color(0.9516, 0.9487, 0.9281, 0.06)
476+
border_width_left = 2
477+
border_color = Color(0.9516, 0.9487, 0.9281, 1)
478+
380479
[sub_resource type="StyleBoxFlat" id="StyleBoxFlat_lk541"]
381480
content_margin_left = 4.0
382481
content_margin_top = 8.0
@@ -485,105 +584,6 @@ corner_radius_top_right = 2
485584
corner_radius_bottom_right = 2
486585
corner_radius_bottom_left = 2
487586

488-
[sub_resource type="StyleBoxEmpty" id="StyleBoxEmpty_sidenav"]
489-
content_margin_left = 16.0
490-
content_margin_top = 12.0
491-
content_margin_right = 16.0
492-
content_margin_bottom = 12.0
493-
494-
[sub_resource type="StyleBoxFlat" id="StyleBoxFlat_sidenav_on"]
495-
content_margin_left = 16.0
496-
content_margin_top = 12.0
497-
content_margin_right = 16.0
498-
content_margin_bottom = 12.0
499-
bg_color = Color(0.9516, 0.9487, 0.9281, 0.06)
500-
border_width_left = 2
501-
border_color = Color(0.9516, 0.9487, 0.9281, 1)
502-
503-
[sub_resource type="StyleBoxFlat" id="StyleBoxFlat_scard"]
504-
bg_color = Color(0, 0, 0, 0)
505-
border_width_left = 1
506-
border_width_top = 1
507-
border_width_right = 1
508-
border_width_bottom = 1
509-
border_color = Color(0.9516, 0.9487, 0.9281, 0.16)
510-
511-
[sub_resource type="StyleBoxFlat" id="StyleBoxFlat_scard_hover"]
512-
bg_color = Color(0.9516, 0.9487, 0.9281, 0.03)
513-
border_width_left = 1
514-
border_width_top = 1
515-
border_width_right = 1
516-
border_width_bottom = 1
517-
border_color = Color(0.9516, 0.9487, 0.9281, 0.34)
518-
519-
[sub_resource type="StyleBoxFlat" id="StyleBoxFlat_scard_on"]
520-
bg_color = Color(0.9516, 0.9487, 0.9281, 0.07)
521-
border_width_left = 1
522-
border_width_top = 1
523-
border_width_right = 1
524-
border_width_bottom = 1
525-
border_color = Color(0.9516, 0.9487, 0.9281, 0.9)
526-
527-
[sub_resource type="StyleBoxFlat" id="StyleBoxFlat_checknorm"]
528-
bg_color = Color(0, 0, 0, 0)
529-
border_width_left = 1
530-
border_width_top = 1
531-
border_width_right = 1
532-
border_width_bottom = 1
533-
border_color = Color(0.6007, 0.5976, 0.5761, 0.7)
534-
535-
[sub_resource type="StyleBoxFlat" id="StyleBoxFlat_checkhover"]
536-
bg_color = Color(0, 0, 0, 0)
537-
border_width_left = 1
538-
border_width_top = 1
539-
border_width_right = 1
540-
border_width_bottom = 1
541-
border_color = Color(0.9516, 0.9487, 0.9281, 0.95)
542-
543-
[sub_resource type="StyleBoxFlat" id="StyleBoxFlat_checkon"]
544-
bg_color = Color(0.9516, 0.9487, 0.9281, 0.95)
545-
border_width_left = 1
546-
border_width_top = 1
547-
border_width_right = 1
548-
border_width_bottom = 1
549-
border_color = Color(0.9516, 0.9487, 0.9281, 0.95)
550-
551-
[sub_resource type="StyleBoxFlat" id="StyleBoxFlat_segnorm"]
552-
content_margin_left = 18.0
553-
content_margin_top = 9.0
554-
content_margin_right = 18.0
555-
content_margin_bottom = 9.0
556-
bg_color = Color(0, 0, 0, 0)
557-
border_width_left = 1
558-
border_width_top = 1
559-
border_width_right = 1
560-
border_width_bottom = 1
561-
border_color = Color(0.9516, 0.9487, 0.9281, 0.14)
562-
563-
[sub_resource type="StyleBoxFlat" id="StyleBoxFlat_seghover"]
564-
content_margin_left = 18.0
565-
content_margin_top = 9.0
566-
content_margin_right = 18.0
567-
content_margin_bottom = 9.0
568-
bg_color = Color(0, 0, 0, 0)
569-
border_width_left = 1
570-
border_width_top = 1
571-
border_width_right = 1
572-
border_width_bottom = 1
573-
border_color = Color(0.9516, 0.9487, 0.9281, 0.5)
574-
575-
[sub_resource type="StyleBoxFlat" id="StyleBoxFlat_segon"]
576-
content_margin_left = 18.0
577-
content_margin_top = 9.0
578-
content_margin_right = 18.0
579-
content_margin_bottom = 9.0
580-
bg_color = Color(0.9516, 0.9487, 0.9281, 0.08)
581-
border_width_left = 1
582-
border_width_top = 1
583-
border_width_right = 1
584-
border_width_bottom = 1
585-
border_color = Color(0.9516, 0.9487, 0.9281, 0.95)
586-
587587
[resource]
588588
default_font = SubResource("FontVariation_wl8xb")
589589
default_font_size = 17
@@ -620,11 +620,11 @@ CheckButton/colors/font_pressed_color = Color(0.9516, 0.9487, 0.9281, 1)
620620
CheckButton/font_sizes/font_size = 16
621621
CheckButton/fonts/font = SubResource("FontVariation_wl8xb")
622622
CheckSquare/base_type = &"Button"
623-
CheckSquare/styles/normal = SubResource("StyleBoxFlat_checknorm")
623+
CheckSquare/styles/focus = SubResource("StyleBoxEmpty_snrae")
624624
CheckSquare/styles/hover = SubResource("StyleBoxFlat_checkhover")
625-
CheckSquare/styles/pressed = SubResource("StyleBoxFlat_checkon")
626625
CheckSquare/styles/hover_pressed = SubResource("StyleBoxFlat_checkon")
627-
CheckSquare/styles/focus = SubResource("StyleBoxEmpty_snrae")
626+
CheckSquare/styles/normal = SubResource("StyleBoxFlat_checknorm")
627+
CheckSquare/styles/pressed = SubResource("StyleBoxFlat_checkon")
628628
DangerButton/base_type = &"Button"
629629
Data/base_type = &"Label"
630630
Data/colors/font_color = Color(0.6007, 0.5976, 0.5761, 1)
@@ -684,42 +684,6 @@ NavButton/styles/focus = SubResource("StyleBoxEmpty_cn62l")
684684
NavButton/styles/hover = SubResource("StyleBoxEmpty_emn5u")
685685
NavButton/styles/normal = SubResource("StyleBoxEmpty_fgcw5")
686686
NavButton/styles/pressed = SubResource("StyleBoxFlat_0uca8")
687-
Segment/base_type = &"Button"
688-
Segment/colors/font_color = Color(0.6007, 0.5976, 0.5761, 1)
689-
Segment/colors/font_focus_color = Color(0.9516, 0.9487, 0.9281, 1)
690-
Segment/colors/font_hover_color = Color(0.9516, 0.9487, 0.9281, 1)
691-
Segment/colors/font_hover_pressed_color = Color(0.9516, 0.9487, 0.9281, 1)
692-
Segment/colors/font_pressed_color = Color(0.9516, 0.9487, 0.9281, 1)
693-
Segment/constants/outline_size = 0
694-
Segment/font_sizes/font_size = 14
695-
Segment/fonts/font = SubResource("FontVariation_2ui85")
696-
Segment/styles/disabled = SubResource("StyleBoxFlat_segnorm")
697-
Segment/styles/focus = SubResource("StyleBoxFlat_segnorm")
698-
Segment/styles/hover = SubResource("StyleBoxFlat_seghover")
699-
Segment/styles/hover_pressed = SubResource("StyleBoxFlat_segon")
700-
Segment/styles/normal = SubResource("StyleBoxFlat_segnorm")
701-
Segment/styles/pressed = SubResource("StyleBoxFlat_segon")
702-
SideNav/base_type = &"Button"
703-
SideNav/colors/font_color = Color(0.6007, 0.5976, 0.5761, 1)
704-
SideNav/colors/font_disabled_color = Color(0.4602, 0.4572, 0.4366, 1)
705-
SideNav/colors/font_focus_color = Color(0.9516, 0.9487, 0.9281, 1)
706-
SideNav/colors/font_hover_color = Color(0.9516, 0.9487, 0.9281, 1)
707-
SideNav/colors/font_hover_pressed_color = Color(0.9516, 0.9487, 0.9281, 1)
708-
SideNav/colors/font_pressed_color = Color(0.9516, 0.9487, 0.9281, 1)
709-
SideNav/font_sizes/font_size = 15
710-
SideNav/fonts/font = SubResource("FontVariation_2ui85")
711-
SideNav/styles/disabled = SubResource("StyleBoxEmpty_sidenav")
712-
SideNav/styles/focus = SubResource("StyleBoxEmpty_sidenav")
713-
SideNav/styles/hover = SubResource("StyleBoxEmpty_sidenav")
714-
SideNav/styles/normal = SubResource("StyleBoxEmpty_sidenav")
715-
SideNav/styles/pressed = SubResource("StyleBoxFlat_sidenav_on")
716-
ScenarioCard/base_type = &"Button"
717-
ScenarioCard/styles/disabled = SubResource("StyleBoxFlat_scard")
718-
ScenarioCard/styles/focus = SubResource("StyleBoxFlat_scard_hover")
719-
ScenarioCard/styles/hover = SubResource("StyleBoxFlat_scard_hover")
720-
ScenarioCard/styles/hover_pressed = SubResource("StyleBoxFlat_scard_on")
721-
ScenarioCard/styles/normal = SubResource("StyleBoxFlat_scard")
722-
ScenarioCard/styles/pressed = SubResource("StyleBoxFlat_scard_on")
723687
OptionButton/colors/font_color = Color(0.9516, 0.9487, 0.9281, 1)
724688
OptionButton/colors/font_hover_color = Color(0.9516, 0.9487, 0.9281, 1)
725689
OptionButton/colors/font_pressed_color = Color(0.9516, 0.9487, 0.9281, 1)
@@ -751,6 +715,42 @@ PrimaryButton/styles/focus = SubResource("StyleBoxFlat_bpugb")
751715
PrimaryButton/styles/hover = SubResource("StyleBoxFlat_4awb2")
752716
PrimaryButton/styles/normal = SubResource("StyleBoxFlat_oro6k")
753717
PrimaryButton/styles/pressed = SubResource("StyleBoxFlat_8lyjp")
718+
ScenarioCard/base_type = &"Button"
719+
ScenarioCard/styles/disabled = SubResource("StyleBoxFlat_scard")
720+
ScenarioCard/styles/focus = SubResource("StyleBoxFlat_scard_hover")
721+
ScenarioCard/styles/hover = SubResource("StyleBoxFlat_scard_hover")
722+
ScenarioCard/styles/hover_pressed = SubResource("StyleBoxFlat_scard_on")
723+
ScenarioCard/styles/normal = SubResource("StyleBoxFlat_scard")
724+
ScenarioCard/styles/pressed = SubResource("StyleBoxFlat_scard_on")
725+
Segment/base_type = &"Button"
726+
Segment/colors/font_color = Color(0.6007, 0.5976, 0.5761, 1)
727+
Segment/colors/font_focus_color = Color(0.9516, 0.9487, 0.9281, 1)
728+
Segment/colors/font_hover_color = Color(0.9516, 0.9487, 0.9281, 1)
729+
Segment/colors/font_hover_pressed_color = Color(0.9516, 0.9487, 0.9281, 1)
730+
Segment/colors/font_pressed_color = Color(0.9516, 0.9487, 0.9281, 1)
731+
Segment/constants/outline_size = 0
732+
Segment/font_sizes/font_size = 14
733+
Segment/fonts/font = SubResource("FontVariation_2ui85")
734+
Segment/styles/disabled = SubResource("StyleBoxFlat_segnorm")
735+
Segment/styles/focus = SubResource("StyleBoxFlat_segnorm")
736+
Segment/styles/hover = SubResource("StyleBoxFlat_seghover")
737+
Segment/styles/hover_pressed = SubResource("StyleBoxFlat_segon")
738+
Segment/styles/normal = SubResource("StyleBoxFlat_segnorm")
739+
Segment/styles/pressed = SubResource("StyleBoxFlat_segon")
740+
SideNav/base_type = &"Button"
741+
SideNav/colors/font_color = Color(0.6007, 0.5976, 0.5761, 1)
742+
SideNav/colors/font_disabled_color = Color(0.4602, 0.4572, 0.4366, 1)
743+
SideNav/colors/font_focus_color = Color(0.9516, 0.9487, 0.9281, 1)
744+
SideNav/colors/font_hover_color = Color(0.9516, 0.9487, 0.9281, 1)
745+
SideNav/colors/font_hover_pressed_color = Color(0.9516, 0.9487, 0.9281, 1)
746+
SideNav/colors/font_pressed_color = Color(0.9516, 0.9487, 0.9281, 1)
747+
SideNav/font_sizes/font_size = 15
748+
SideNav/fonts/font = SubResource("FontVariation_2ui85")
749+
SideNav/styles/disabled = SubResource("StyleBoxEmpty_sidenav")
750+
SideNav/styles/focus = SubResource("StyleBoxEmpty_sidenav")
751+
SideNav/styles/hover = SubResource("StyleBoxEmpty_sidenav")
752+
SideNav/styles/normal = SubResource("StyleBoxEmpty_sidenav")
753+
SideNav/styles/pressed = SubResource("StyleBoxFlat_sidenav_on")
754754
SpinBox/styles/normal = SubResource("StyleBoxFlat_ajxq1")
755755
Subheading/base_type = &"Label"
756756
Subheading/colors/font_color = Color(0.9516, 0.9487, 0.9281, 1)

0 commit comments

Comments
 (0)