Restore ocean palette to technical menus
This commit is contained in:
parent
59bdb07fc5
commit
99775ddbfb
11 changed files with 200 additions and 123 deletions
|
|
@ -97,19 +97,17 @@ func _update_visual_pivot() -> void:
|
|||
|
||||
func _refresh_style() -> void:
|
||||
var style := StyleBoxFlat.new()
|
||||
style.bg_color = Color(0.95, 0.9, 0.75, 0.12) if _selected else Color.TRANSPARENT
|
||||
style.border_color = Color.TRANSPARENT
|
||||
var width: int = 0
|
||||
style.bg_color = (
|
||||
UtilityPageStyle.OCEAN_SELECTED
|
||||
if _selected else Color(UtilityPageStyle.OCEAN_FIELD, 0.48)
|
||||
)
|
||||
if _selected:
|
||||
style.border_color = Color(0.28, 0.19, 0.1, 1.0)
|
||||
width = 4
|
||||
style.bg_color = UtilityPageStyle.OCEAN_SELECTED
|
||||
if has_focus():
|
||||
style.border_color = Color(0.035, 0.145, 0.22, 1.0)
|
||||
width = 4
|
||||
style.bg_color = UtilityPageStyle.OCEAN_BUTTON_HOVER
|
||||
elif _hovered:
|
||||
style.border_color = Color(0.48, 0.35, 0.2, 0.9)
|
||||
width = 2
|
||||
style.set_border_width_all(width)
|
||||
style.bg_color = Color(UtilityPageStyle.OCEAN_PANEL_MID, 0.88)
|
||||
style.set_border_width_all(0)
|
||||
style.set_corner_radius_all(64)
|
||||
for state: StringName in [
|
||||
&"normal",
|
||||
|
|
@ -122,9 +120,8 @@ func _refresh_style() -> void:
|
|||
|
||||
func _apply_quantity_style() -> void:
|
||||
var style := StyleBoxFlat.new()
|
||||
style.bg_color = Color(0.94, 0.86, 0.64, 1.0)
|
||||
style.border_color = Color(0.31, 0.22, 0.12, 1.0)
|
||||
style.set_border_width_all(2)
|
||||
style.bg_color = UtilityPageStyle.OCEAN_SELECTED
|
||||
style.set_border_width_all(0)
|
||||
style.set_corner_radius_all(18)
|
||||
style.content_margin_left = 5.0
|
||||
style.content_margin_right = 5.0
|
||||
|
|
|
|||
|
|
@ -56,7 +56,7 @@ mouse_filter = 2
|
|||
unique_name_in_owner = true
|
||||
layout_mode = 2
|
||||
mouse_filter = 2
|
||||
theme_override_colors/font_color = Color(0.17, 0.105, 0.05, 1)
|
||||
theme_override_colors/font_color = Color(0.902, 0.969, 0.969, 1)
|
||||
theme_override_font_sizes/font_size = 15
|
||||
text = "×2"
|
||||
horizontal_alignment = 1
|
||||
|
|
@ -75,9 +75,7 @@ offset_right = -2.0
|
|||
offset_bottom = 24.0
|
||||
grow_horizontal = 0
|
||||
mouse_filter = 2
|
||||
theme_override_colors/font_color = Color(0.31, 0.22, 0.12, 1)
|
||||
theme_override_colors/font_outline_color = Color(0.96, 0.93, 0.82, 1)
|
||||
theme_override_constants/outline_size = 2
|
||||
theme_override_colors/font_color = Color(0.624, 0.812, 0.824, 1)
|
||||
theme_override_font_sizes/font_size = 17
|
||||
text = "×"
|
||||
horizontal_alignment = 1
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue