non-flex div background (padding, corner radius)

This commit is contained in:
Face
2025-07-31 16:13:21 +03:00
parent efe03a3bc7
commit b59a98ed3a
17 changed files with 153 additions and 72 deletions

View File

@@ -7,3 +7,5 @@ bg_color = Color(0.152476, 0.152476, 0.152476, 1)
draw_center = false
corner_radius_top_left = 15
corner_radius_top_right = 15
corner_radius_bottom_right = 15
corner_radius_bottom_left = 15

View File

@@ -6,3 +6,5 @@ content_margin_right = 8.0
bg_color = Color(0, 0, 0, 1)
corner_radius_top_left = 15
corner_radius_top_right = 15
corner_radius_bottom_right = 15
corner_radius_bottom_left = 15

View File

@@ -6,3 +6,5 @@ content_margin_right = 8.0
bg_color = Color(0.138034, 0.138034, 0.138034, 1)
corner_radius_top_left = 15
corner_radius_top_right = 15
corner_radius_bottom_right = 15
corner_radius_bottom_left = 15

View File

@@ -6,3 +6,5 @@ content_margin_right = 8.0
bg_color = Color(0.109804, 0.109804, 0.109804, 1)
corner_radius_top_left = 15
corner_radius_top_right = 15
corner_radius_bottom_right = 15
corner_radius_bottom_left = 15

View File

@@ -2,8 +2,6 @@
[ext_resource type="Script" uid="uid://ckks1ccehq6al" path="res://Scripts/Tags/div.gd" id="1_div"]
[node name="Div" type="VBoxContainer"]
anchors_preset = 10
anchor_right = 1.0
grow_horizontal = 2
[node name="div" type="VBoxContainer"]
offset_right = 1920.0
script = ExtResource("1_div")

View File

@@ -66,7 +66,7 @@ SpinBox/styles/down_background_pressed = SubResource("StyleBoxEmpty_xxc4c")
SpinBox/styles/up_background_hovered = SubResource("StyleBoxEmpty_unki5")
SpinBox/styles/up_background_pressed = SubResource("StyleBoxEmpty_3wmat")
[node name="Input" type="Control"]
[node name="input" type="Control"]
layout_mode = 3
anchors_preset = 15
anchor_right = 1.0

View File

@@ -1,22 +1,9 @@
[gd_scene load_steps=3 format=3 uid="uid://bli1234568aa"]
[gd_scene load_steps=2 format=3 uid="uid://bli1234568aa"]
[ext_resource type="Script" uid="uid://ps8duq0aw3tu" path="res://Scripts/Tags/li.gd" id="1_li"]
[ext_resource type="Theme" uid="uid://bn6rbmdy60lhr" path="res://Scenes/Styles/BrowserText.tres" id="2_theme"]
[node name="LI" type="VBoxContainer"]
[node name="li" type="VBoxContainer"]
anchors_preset = 10
anchor_right = 1.0
grow_horizontal = 2
script = ExtResource("1_li")
[node name="RichTextLabel" type="RichTextLabel" parent="."]
layout_mode = 2
size_flags_horizontal = 3
focus_mode = 2
mouse_default_cursor_shape = 1
theme = ExtResource("2_theme")
theme_override_colors/default_color = Color(0, 0, 0, 1)
bbcode_enabled = true
text = "Placeholder"
fit_content = true
selection_enabled = true

View File

@@ -2,7 +2,7 @@
[ext_resource type="Script" uid="uid://bbkebg4aihve3" path="res://Scripts/Tags/ol.gd" id="1_ol"]
[node name="OL" type="VBoxContainer"]
[node name="ol" type="VBoxContainer"]
anchors_preset = 10
anchor_right = 1.0
grow_horizontal = 2

View File

@@ -3,7 +3,7 @@
[ext_resource type="Script" uid="uid://ps8duq0aw3tu" path="res://Scripts/Tags/li.gd" id="1_option"]
[ext_resource type="Theme" uid="uid://bn6rbmdy60lhr" path="res://Scenes/Styles/BrowserText.tres" id="2_theme"]
[node name="Option" type="Control"]
[node name="option" type="Control"]
layout_mode = 3
anchors_preset = 10
anchor_right = 1.0

View File

@@ -3,7 +3,7 @@
[ext_resource type="Script" uid="uid://cg6kjvlx3an1j" path="res://Scripts/Tags/p.gd" id="1_pnbfg"]
[ext_resource type="Theme" uid="uid://bn6rbmdy60lhr" path="res://Scenes/Styles/BrowserText.tres" id="2_1glvj"]
[node name="RichTextLabel" type="RichTextLabel"]
[node name="p" type="RichTextLabel"]
anchors_preset = 10
anchor_right = 1.0
offset_bottom = 19.0

View File

@@ -3,7 +3,7 @@
[ext_resource type="Script" uid="uid://bmu8q4rm1wopd" path="res://Scripts/Tags/select.gd" id="1_select"]
[ext_resource type="Theme" uid="uid://bn6rbmdy60lhr" path="res://Scenes/Styles/BrowserText.tres" id="2_xq313"]
[node name="Select" type="Control"]
[node name="select" type="Control"]
layout_mode = 3
anchors_preset = 10
anchor_right = 1.0

View File

@@ -4,7 +4,7 @@
[ext_resource type="Theme" uid="uid://bn6rbmdy60lhr" path="res://Scenes/Styles/BrowserText.tres" id="2_theme"]
[ext_resource type="Script" uid="uid://c5xpoyqcg1p8k" path="res://Scripts/ResizableTextEdit.gd" id="3_kbdk1"]
[node name="Textarea" type="Control"]
[node name="textarea" type="Control"]
layout_mode = 3
anchors_preset = 10
anchor_right = 1.0