From: Eduardo Date: Sat, 30 Sep 2023 00:51:10 +0000 (+0200) Subject: checkbox style changed* X-Git-Url: http://git.edufdez.es/?a=commitdiff_plain;h=e84997e05bb40ab3bec0913d0c11b669b47cbc29;p=The%20Cutests%20To-Do%20List.git checkbox style changed* *we still need the checked icon since it is not done at the moment --- diff --git a/custom_elements/todo_list_elements/Screenshot from 2023-09-30 01-50-56.png b/custom_elements/todo_list_elements/Screenshot from 2023-09-30 01-50-56.png new file mode 100644 index 0000000..f84dbcf Binary files /dev/null and b/custom_elements/todo_list_elements/Screenshot from 2023-09-30 01-50-56.png differ diff --git a/custom_elements/todo_list_elements/Screenshot from 2023-09-30 01-50-56.png.import b/custom_elements/todo_list_elements/Screenshot from 2023-09-30 01-50-56.png.import new file mode 100644 index 0000000..263281d --- /dev/null +++ b/custom_elements/todo_list_elements/Screenshot from 2023-09-30 01-50-56.png.import @@ -0,0 +1,34 @@ +[remap] + +importer="texture" +type="CompressedTexture2D" +uid="uid://bbus6xhechcey" +path="res://.godot/imported/Screenshot from 2023-09-30 01-50-56.png-f4fb84dff2769149c9a831d4f7fe7b7d.ctex" +metadata={ +"vram_texture": false +} + +[deps] + +source_file="res://custom_elements/todo_list_elements/Screenshot from 2023-09-30 01-50-56.png" +dest_files=["res://.godot/imported/Screenshot from 2023-09-30 01-50-56.png-f4fb84dff2769149c9a831d4f7fe7b7d.ctex"] + +[params] + +compress/mode=0 +compress/high_quality=false +compress/lossy_quality=0.7 +compress/hdr_compression=1 +compress/normal_map=0 +compress/channel_pack=0 +mipmaps/generate=false +mipmaps/limit=-1 +roughness/mode=0 +roughness/src_normal="" +process/fix_alpha_border=true +process/premult_alpha=false +process/normal_map_invert_y=false +process/hdr_as_srgb=false +process/hdr_clamp_exposure=false +process/size_limit=0 +detect_3d/compress_to=1 diff --git a/custom_elements/todo_list_elements/todo_element.tscn b/custom_elements/todo_list_elements/todo_element.tscn index 3e57a79..8ab713d 100644 --- a/custom_elements/todo_list_elements/todo_element.tscn +++ b/custom_elements/todo_list_elements/todo_element.tscn @@ -1,7 +1,8 @@ -[gd_scene load_steps=3 format=3 uid="uid://cilxydvrxa3oj"] +[gd_scene load_steps=4 format=3 uid="uid://cilxydvrxa3oj"] [ext_resource type="Script" path="res://custom_elements/todo_list_elements/todo_element.gd" id="1_4t3br"] [ext_resource type="Texture2D" uid="uid://crhn8w3ljpuv7" path="res://themes/default/resources/star_icon.png" id="1_xkf81"] +[ext_resource type="Texture2D" uid="uid://bbus6xhechcey" path="res://custom_elements/todo_list_elements/Screenshot from 2023-09-30 01-50-56.png" id="2_m4flb"] [node name="todo_element" type="Control"] layout_mode = 3 @@ -15,6 +16,7 @@ metadata/position = 0 metadata/task_id = 0 metadata/created_at = "" metadata/updated_at = "" +metadata/_edit_horizontal_guides_ = [74.0] [node name="MarginContainer" type="MarginContainer" parent="."] clip_contents = true @@ -23,6 +25,7 @@ anchors_preset = 10 anchor_right = 1.0 offset_bottom = 119.0 grow_horizontal = 2 +theme_override_constants/margin_left = 60 theme_override_constants/margin_right = 200 [node name="CheckBox" type="CheckBox" parent="MarginContainer"] @@ -30,6 +33,26 @@ layout_mode = 2 text = "Pick the laundry and something else very long that canot enter the line" text_overrun_behavior = 3 +[node name="guide_REMOVE_ME" type="TextureRect" parent="MarginContainer"] +visible = false +layout_mode = 2 +texture = ExtResource("2_m4flb") +expand_mode = 1 +stretch_mode = 4 + +[node name="CheckSquare" type="Line2D" parent="MarginContainer"] +position = Vector2(11.8462, 21.5749) +scale = Vector2(0.6, 0.6) +points = PackedVector2Array(29, 44, 29.087, 72.5358, 29.5068, 75.8725, 30.4349, 78.5684, 32.291, 81.684, 34.7438, 84.0264, 38.1026, 86.214, 41.1962, 87.1641, 44.0025, 87.4514, 71.5355, 87.4956, 76.0875, 87.142, 79.9766, 85.6173, 83.6005, 82.7005, 85.9649, 79.4743, 87.4012, 75.8062, 87.7989, 72.2265, 87.7326, 42.0197, 86.3847, 37.2467, 84.175, 33.9764, 80.993, 31.1259, 78.2529, 29.7117, 75.5571, 28.8941, 73.6788, 28.6068, 43.7373, 28.651, 40.931, 28.9382, 37.4396, 30.2641, 33.7715, 32.8936, 31.1861, 36.0977, 29.5952, 39.6111, 29.0427, 43.6107) +width = 8.0 +default_color = Color(0.545098, 0.756863, 0.827451, 1) +joint_mode = 2 +begin_cap_mode = 2 +end_cap_mode = 2 +sharp_limit = 0.0 +round_precision = 32 +antialiased = true + [node name="1Star" type="Control" parent="."] visible = false layout_mode = 1 diff --git a/themes/default/Default_theme.tres b/themes/default/Default_theme.tres index 0131e5e..38b6b39 100644 --- a/themes/default/Default_theme.tres +++ b/themes/default/Default_theme.tres @@ -1,4 +1,4 @@ -[gd_resource type="Theme" load_steps=11 format=3 uid="uid://dk131w4mrmlyj"] +[gd_resource type="Theme" load_steps=12 format=3 uid="uid://dk131w4mrmlyj"] [ext_resource type="FontFile" uid="uid://cek5417mq2pbt" path="res://themes/default/fonts/BunnyCute-Regular.otf" id="1_ab6ib"] @@ -26,6 +26,9 @@ shadow_color = Color(1, 0.776471, 0.729412, 1) shadow_size = 6 shadow_offset = Vector2(4, 4) +[sub_resource type="PlaceholderTexture2D" id="PlaceholderTexture2D_8510r"] +size = Vector2(0, 0) + [sub_resource type="StyleBoxEmpty" id="StyleBoxEmpty_6gma6"] [sub_resource type="StyleBoxEmpty" id="StyleBoxEmpty_vsss1"] @@ -54,6 +57,7 @@ CheckBox/colors/font_outline_color = Color(0, 0, 0, 1) CheckBox/colors/font_pressed_color = Color(0, 0, 0, 1) CheckBox/constants/h_separation = 16 CheckBox/font_sizes/font_size = 64 +CheckBox/icons/unchecked = SubResource("PlaceholderTexture2D_8510r") CheckBox/styles/disabled = SubResource("StyleBoxEmpty_6gma6") CheckBox/styles/focus = SubResource("StyleBoxEmpty_vsss1") CheckBox/styles/hover = SubResource("StyleBoxEmpty_erjcp")