Skip to content

Commit

Permalink
Merge pull request #3 from b7g/theme-fixes
Browse files Browse the repository at this point in the history
Fixed some problems with the themes
  • Loading branch information
RedstoneMedia authored Jun 30, 2022
2 parents 4ebc1a9 + 8def3fc commit 555e856
Show file tree
Hide file tree
Showing 5 changed files with 40 additions and 31 deletions.
5 changes: 4 additions & 1 deletion game/app/scenes/game_card.tscn
Original file line number Diff line number Diff line change
Expand Up @@ -49,10 +49,13 @@ bg_color = Color( 0.164706, 0.164706, 0.164706, 1 )
[node name="GameCard" type="ColorRect"]
margin_right = 320.0
margin_bottom = 180.0
rect_min_size = Vector2( 320, 180 )
rect_min_size = Vector2( 320, 187 )
theme = ExtResource( 7 )
color = Color( 0.2, 0.2, 0.2, 1 )
script = ExtResource( 1 )
__meta__ = {
"_edit_use_anchors_": false
}

[node name="BackgroundImage" type="TextureRect" parent="."]
visible = false
Expand Down
3 changes: 3 additions & 0 deletions game/app/scenes/menu.tscn
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,9 @@ anchor_bottom = 1.0
theme = ExtResource( 3 )
custom_constants/separation = 0
script = ExtResource( 5 )
__meta__ = {
"_edit_use_anchors_": false
}

[node name="MenuBar" type="PanelContainer" parent="."]
margin_right = 1024.0
Expand Down
19 changes: 11 additions & 8 deletions game/app/style/main_theme.tres
Original file line number Diff line number Diff line change
Expand Up @@ -74,10 +74,10 @@ corner_radius_bottom_left = 18

[sub_resource type="StyleBoxFlat" id=41]
bg_color = Color( 0.368627, 0.368627, 0.368627, 1 )
corner_radius_top_left = 10
corner_radius_top_right = 10
corner_radius_bottom_right = 10
corner_radius_bottom_left = 10
corner_radius_top_left = 12
corner_radius_top_right = 12
corner_radius_bottom_right = 12
corner_radius_bottom_left = 12

[sub_resource type="StyleBoxFlat" id=40]
content_margin_left = 5.0
Expand All @@ -86,10 +86,13 @@ content_margin_top = 5.0
content_margin_bottom = 0.0
bg_color = Color( 0.243137, 0.243137, 0.243137, 1 )
border_color = Color( 0, 0, 0, 1 )
corner_radius_top_left = 10
corner_radius_top_right = 10
corner_radius_bottom_right = 10
corner_radius_bottom_left = 10
corner_radius_top_left = 14
corner_radius_top_right = 14
corner_radius_bottom_right = 14
corner_radius_bottom_left = 14
expand_margin_left = 2.0
expand_margin_right = 2.0
expand_margin_bottom = 5.0
shadow_offset = Vector2( 5, 5 )

[sub_resource type="StyleBoxFlat" id=35]
Expand Down
42 changes: 21 additions & 21 deletions game/app/style/round_icon_button_theme.tres
Original file line number Diff line number Diff line change
Expand Up @@ -9,10 +9,10 @@ border_width_top = 1
border_width_right = 1
border_width_bottom = 1
border_color = Color( 0, 0, 0, 0 )
corner_radius_top_left = 18
corner_radius_top_right = 18
corner_radius_bottom_right = 18
corner_radius_bottom_left = 18
corner_radius_top_left = 21
corner_radius_top_right = 21
corner_radius_bottom_right = 21
corner_radius_bottom_left = 21

[sub_resource type="StyleBoxFlat" id=25]
bg_color = Color( 0, 0, 0, 0 )
Expand All @@ -22,22 +22,22 @@ border_width_right = 2
border_width_bottom = 3
border_color = Color( 0.25098, 0.627451, 1, 1 )
border_blend = true
corner_radius_top_left = 18
corner_radius_top_right = 18
corner_radius_bottom_right = 18
corner_radius_bottom_left = 18
corner_radius_top_left = 21
corner_radius_top_right = 21
corner_radius_bottom_right = 21
corner_radius_bottom_left = 21

[sub_resource type="StyleBoxFlat" id=26]
bg_color = Color( 1, 1, 1, 0.12549 )
bg_color = Color( 0.333333, 0.333333, 0.333333, 1 )
border_width_left = 1
border_width_top = 1
border_width_right = 1
border_width_bottom = 1
border_color = Color( 1, 1, 1, 0.501961 )
corner_radius_top_left = 18
corner_radius_top_right = 18
corner_radius_bottom_right = 18
corner_radius_bottom_left = 18
corner_radius_top_left = 21
corner_radius_top_right = 21
corner_radius_bottom_right = 21
corner_radius_bottom_left = 21

[sub_resource type="StyleBoxFlat" id=23]
bg_color = Color( 0.266667, 0.266667, 0.266667, 1 )
Expand All @@ -46,10 +46,10 @@ border_width_top = 1
border_width_right = 1
border_width_bottom = 1
border_color = Color( 0, 0, 0, 0 )
corner_radius_top_left = 18
corner_radius_top_right = 18
corner_radius_bottom_right = 18
corner_radius_bottom_left = 18
corner_radius_top_left = 21
corner_radius_top_right = 21
corner_radius_bottom_right = 21
corner_radius_bottom_left = 21

[sub_resource type="StyleBoxFlat" id=27]
bg_color = Color( 0, 0, 0, 0.12549 )
Expand All @@ -58,10 +58,10 @@ border_width_top = 1
border_width_right = 1
border_width_bottom = 1
border_color = Color( 0, 0, 0, 0 )
corner_radius_top_left = 18
corner_radius_top_right = 18
corner_radius_bottom_right = 18
corner_radius_bottom_left = 18
corner_radius_top_left = 21
corner_radius_top_right = 21
corner_radius_bottom_right = 21
corner_radius_bottom_left = 21

[sub_resource type="DynamicFont" id=21]
font_data = ExtResource( 1 )
Expand Down
2 changes: 1 addition & 1 deletion game/project.godot
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ _global_script_classes=[ {
"language": "GDScript",
"path": "res://games/sortit/player.gd"
}, {
"base": "Reference",
"base": "MarginContainer",
"class": "SortItRoot",
"language": "GDScript",
"path": "res://games/sortit/sort_it.gd"
Expand Down

0 comments on commit 555e856

Please sign in to comment.