1
0
mirror of https://github.com/JohnBreaux/Boat-Battle.git synced 2024-11-15 05:25:57 +00:00

made dark theme

This commit is contained in:
tommy-l-ngo 2021-11-14 00:43:14 -06:00
parent dd5b6f7b71
commit 6577c2551b
2 changed files with 34 additions and 8 deletions

View File

@ -0,0 +1,24 @@
[gd_resource type="Theme" load_steps=3 format=2]
[sub_resource type="StyleBoxFlat" id=1]
bg_color = Color( 0.239216, 0.227451, 0.270588, 1 )
corner_radius_top_left = 2
corner_radius_top_right = 2
corner_radius_bottom_right = 2
corner_radius_bottom_left = 2
[sub_resource type="DynamicFont" id=2]
[resource]
default_font = SubResource( 2 )
Button/colors/font_color = Color( 1, 1, 1, 1 )
Button/colors/font_color_disabled = Color( 0.9, 0.9, 0.9, 0.2 )
Button/colors/font_color_hover = Color( 1, 1, 1, 1 )
Button/colors/font_color_pressed = Color( 1, 1, 1, 1 )
Button/constants/hseparation = 2
Button/fonts/font = null
Button/styles/disabled = null
Button/styles/focus = null
Button/styles/hover = null
Button/styles/normal = SubResource( 1 )
Button/styles/pressed = null

View File

@ -1,5 +1,6 @@
[gd_scene load_steps=4 format=2] [gd_scene load_steps=5 format=2]
[ext_resource path="res://dark_theme.tres" type="Theme" id=1]
[ext_resource path="res://script/title screen/Title Screen.gd" type="Script" id=2] [ext_resource path="res://script/title screen/Title Screen.gd" type="Script" id=2]
[ext_resource path="res://assets/font/Minecraft.ttf" type="DynamicFontData" id=3] [ext_resource path="res://assets/font/Minecraft.ttf" type="DynamicFontData" id=3]
@ -12,6 +13,7 @@ font_data = ExtResource( 3 )
[node name="Title Node" type="Control"] [node name="Title Node" type="Control"]
anchor_right = 1.0 anchor_right = 1.0
anchor_bottom = 1.0 anchor_bottom = 1.0
theme = ExtResource( 1 )
script = ExtResource( 2 ) script = ExtResource( 2 )
__meta__ = { __meta__ = {
"_edit_use_anchors_": false "_edit_use_anchors_": false
@ -32,26 +34,26 @@ __meta__ = {
[node name="Singleplayer" type="Button" parent="VBoxContainer"] [node name="Singleplayer" type="Button" parent="VBoxContainer"]
margin_right = 136.0 margin_right = 136.0
margin_bottom = 20.0 margin_bottom = 1.0
focus_neighbour_top = NodePath("../Quit") focus_neighbour_top = NodePath("../Quit")
text = "Single Player" text = "Single Player"
[node name="Multiplayer" type="Button" parent="VBoxContainer"] [node name="Multiplayer" type="Button" parent="VBoxContainer"]
margin_top = 24.0 margin_top = 5.0
margin_right = 136.0 margin_right = 136.0
margin_bottom = 44.0 margin_bottom = 6.0
text = "Multiplayer" text = "Multiplayer"
[node name="Options" type="Button" parent="VBoxContainer"] [node name="Options" type="Button" parent="VBoxContainer"]
margin_top = 48.0 margin_top = 10.0
margin_right = 136.0 margin_right = 136.0
margin_bottom = 68.0 margin_bottom = 11.0
text = "Options" text = "Options"
[node name="Quit" type="Button" parent="VBoxContainer"] [node name="Quit" type="Button" parent="VBoxContainer"]
margin_top = 72.0 margin_top = 15.0
margin_right = 136.0 margin_right = 136.0
margin_bottom = 92.0 margin_bottom = 16.0
focus_neighbour_bottom = NodePath("../Singleplayer") focus_neighbour_bottom = NodePath("../Singleplayer")
text = "Quit" text = "Quit"