Merge branch 'master-lepshiy'
# Conflicts: # scenes/настройки/настройки.gd
This commit is contained in:
17
table/editl.gd
Normal file
17
table/editl.gd
Normal file
@@ -0,0 +1,17 @@
|
||||
extends LineEdit
|
||||
|
||||
func _ready():
|
||||
_update_background()
|
||||
|
||||
func _update_background() -> void:
|
||||
var is_light: bool = ProjectSettings.get_setting("application/config/Цвет темы программы", false)
|
||||
var style = get_theme_stylebox("read_only").duplicate()
|
||||
if is_light:
|
||||
style.bg_color = Color.GRAY
|
||||
add_theme_color_override("font_color_readonly", Color.BLACK)
|
||||
add_theme_color_override("font_color_placeholder", Color(0, 0, 0, 0.5))
|
||||
else:
|
||||
style.bg_color = Color(0.12, 0.12, 0.12)
|
||||
add_theme_color_override("font_color_readonly", Color("#D8731A")) # тёмно-оранжевый
|
||||
add_theme_color_override("font_color_placeholder", Color(1, 1, 1, 0.5))
|
||||
add_theme_stylebox_override("read_only", style)
|
||||
1
table/editl.gd.uid
Normal file
1
table/editl.gd.uid
Normal file
@@ -0,0 +1 @@
|
||||
uid://bky7xlpaj21sj
|
||||
@@ -1,7 +1,10 @@
|
||||
[gd_scene format=3 uid="uid://bvbvtgwps54yr"]
|
||||
[gd_scene load_steps=2 format=3 uid="uid://bvbvtgwps54yr"]
|
||||
|
||||
[ext_resource type="Script" uid="uid://bky7xlpaj21sj" path="res://table/editl.gd" id="1_xd53c"]
|
||||
|
||||
[node name="Editl" type="LineEdit"]
|
||||
offset_right = 59.875
|
||||
offset_bottom = 33.0
|
||||
caret_blink = true
|
||||
caret_blink_interval = 0.5
|
||||
script = ExtResource("1_xd53c")
|
||||
|
||||
16
table/lable.gd
Normal file
16
table/lable.gd
Normal file
@@ -0,0 +1,16 @@
|
||||
extends Label
|
||||
|
||||
func _ready():
|
||||
_update_background()
|
||||
|
||||
func _process(_delta):
|
||||
_update_background()
|
||||
|
||||
func _update_background() -> void:
|
||||
var is_light: bool = ProjectSettings.get_setting("application/config/Цвет темы программы", false)
|
||||
var style = get_theme_stylebox("normal").duplicate()
|
||||
if is_light:
|
||||
style.bg_color = Color.GRAY
|
||||
else:
|
||||
style.bg_color = Color(0.12, 0.12, 0.12)
|
||||
add_theme_stylebox_override("normal", style)
|
||||
1
table/lable.gd.uid
Normal file
1
table/lable.gd.uid
Normal file
@@ -0,0 +1 @@
|
||||
uid://bjw0gwcqxx30d
|
||||
@@ -1,4 +1,6 @@
|
||||
[gd_scene load_steps=2 format=3 uid="uid://dwphmxstaxn4v"]
|
||||
[gd_scene load_steps=3 format=3 uid="uid://dwphmxstaxn4v"]
|
||||
|
||||
[ext_resource type="Script" uid="uid://bjw0gwcqxx30d" path="res://table/lable.gd" id="1_xk0u2"]
|
||||
|
||||
[sub_resource type="StyleBoxFlat" id="StyleBoxFlat_yign5"]
|
||||
bg_color = Color(0.117647, 0.117647, 0.117647, 0.85098)
|
||||
@@ -14,3 +16,4 @@ offset_right = 104.0
|
||||
offset_bottom = 27.0
|
||||
theme_override_colors/font_color = Color(1, 0.596078, 0.4, 1)
|
||||
theme_override_styles/normal = SubResource("StyleBoxFlat_yign5")
|
||||
script = ExtResource("1_xk0u2")
|
||||
|
||||
16
table/node.gd
Normal file
16
table/node.gd
Normal file
@@ -0,0 +1,16 @@
|
||||
extends LineEdit
|
||||
|
||||
func _ready():
|
||||
_update_background()
|
||||
|
||||
func _process(_delta):
|
||||
_update_background()
|
||||
|
||||
func _update_background() -> void:
|
||||
var is_light: bool = ProjectSettings.get_setting("application/config/Цвет темы программы", false)
|
||||
var style = get_theme_stylebox("read_only").duplicate()
|
||||
if is_light:
|
||||
style.bg_color = Color.GRAY
|
||||
else:
|
||||
style.bg_color = Color(0.12, 0.12, 0.12)
|
||||
add_theme_stylebox_override("read_only", style)
|
||||
1
table/node.gd.uid
Normal file
1
table/node.gd.uid
Normal file
@@ -0,0 +1 @@
|
||||
uid://c71233c2tqc2u
|
||||
@@ -1,4 +1,6 @@
|
||||
[gd_scene format=3 uid="uid://c1i4rwaajq7d5"]
|
||||
[gd_scene load_steps=2 format=3 uid="uid://c1i4rwaajq7d5"]
|
||||
|
||||
[ext_resource type="Script" uid="uid://c71233c2tqc2u" path="res://table/node.gd" id="1_oh3pj"]
|
||||
|
||||
[node name="Label" type="LineEdit"]
|
||||
offset_right = 121.0
|
||||
@@ -8,3 +10,4 @@ editable = false
|
||||
context_menu_enabled = false
|
||||
caret_blink = true
|
||||
caret_blink_interval = 0.1
|
||||
script = ExtResource("1_oh3pj")
|
||||
|
||||
16
table/set-toggle.gd
Normal file
16
table/set-toggle.gd
Normal file
@@ -0,0 +1,16 @@
|
||||
extends LineEdit
|
||||
|
||||
func _ready():
|
||||
_update_background()
|
||||
|
||||
func _process(_delta):
|
||||
_update_background()
|
||||
|
||||
func _update_background() -> void:
|
||||
var is_light: bool = ProjectSettings.get_setting("application/config/Цвет темы программы", false)
|
||||
var style = get_theme_stylebox("read_only").duplicate()
|
||||
if is_light:
|
||||
style.bg_color = Color.GRAY
|
||||
else:
|
||||
style.bg_color = Color(0.12, 0.12, 0.12)
|
||||
add_theme_stylebox_override("read_only", style)
|
||||
1
table/set-toggle.gd.uid
Normal file
1
table/set-toggle.gd.uid
Normal file
@@ -0,0 +1 @@
|
||||
uid://btvrqnnjjum20
|
||||
@@ -1,4 +1,6 @@
|
||||
[gd_scene load_steps=4 format=3 uid="uid://dgidt8lifm7xe"]
|
||||
[gd_scene load_steps=6 format=3 uid="uid://dgidt8lifm7xe"]
|
||||
|
||||
[ext_resource type="Script" uid="uid://btvrqnnjjum20" path="res://table/set-toggle.gd" id="1_kvru5"]
|
||||
|
||||
[sub_resource type="StyleBoxEmpty" id="StyleBoxEmpty_f4oye"]
|
||||
|
||||
@@ -7,11 +9,14 @@
|
||||
[sub_resource type="Theme" id="Theme_odxqp"]
|
||||
CheckButton/styles/focus = SubResource("StyleBoxEmpty_t3fqw")
|
||||
|
||||
[sub_resource type="StyleBoxEmpty" id="StyleBoxEmpty_kvru5"]
|
||||
|
||||
[node name="LineEdit" type="LineEdit"]
|
||||
offset_right = 85.0
|
||||
offset_bottom = 27.0
|
||||
theme_override_styles/focus = SubResource("StyleBoxEmpty_f4oye")
|
||||
editable = false
|
||||
script = ExtResource("1_kvru5")
|
||||
|
||||
[node name="CheckButton" type="CheckButton" parent="."]
|
||||
layout_mode = 0
|
||||
@@ -20,3 +25,4 @@ offset_top = 1.0
|
||||
offset_right = 65.0
|
||||
offset_bottom = 25.0
|
||||
theme = SubResource("Theme_odxqp")
|
||||
theme_override_styles/focus = SubResource("StyleBoxEmpty_kvru5")
|
||||
|
||||
16
table/settings-toggle.gd
Normal file
16
table/settings-toggle.gd
Normal file
@@ -0,0 +1,16 @@
|
||||
extends LineEdit
|
||||
|
||||
func _ready():
|
||||
_update_background()
|
||||
|
||||
func _process(_delta):
|
||||
_update_background()
|
||||
|
||||
func _update_background() -> void:
|
||||
var is_light: bool = ProjectSettings.get_setting("application/config/Цвет темы программы", false)
|
||||
var style = get_theme_stylebox("read_only").duplicate()
|
||||
if is_light:
|
||||
style.bg_color = Color.GRAY
|
||||
else:
|
||||
style.bg_color = Color(0.12, 0.12, 0.12)
|
||||
add_theme_stylebox_override("read_only", style)
|
||||
1
table/settings-toggle.gd.uid
Normal file
1
table/settings-toggle.gd.uid
Normal file
@@ -0,0 +1 @@
|
||||
uid://bh7mb1aeu1uk6
|
||||
@@ -1,26 +1,25 @@
|
||||
[gd_scene load_steps=5 format=3 uid="uid://5rw652cmnybi"]
|
||||
|
||||
[ext_resource type="Script" uid="uid://bh7mb1aeu1uk6" path="res://table/settings-toggle.gd" id="1_8lkgc"]
|
||||
[ext_resource type="Shader" uid="uid://bw5mmbgeycwua" path="res://shaders/color-invers.gdshader" id="1_anyuq"]
|
||||
|
||||
[sub_resource type="StyleBoxEmpty" id="StyleBoxEmpty_7hsq1"]
|
||||
|
||||
[sub_resource type="ShaderMaterial" id="ShaderMaterial_xxfw6"]
|
||||
shader = ExtResource("1_anyuq")
|
||||
|
||||
[sub_resource type="StyleBoxEmpty" id="StyleBoxEmpty_y8485"]
|
||||
[sub_resource type="StyleBoxEmpty" id="StyleBoxEmpty_8lkgc"]
|
||||
|
||||
[node name="LineEdit" type="LineEdit"]
|
||||
offset_right = 950.0
|
||||
offset_bottom = 27.0
|
||||
theme_override_colors/font_uneditable_color = Color(1, 0.596078, 0.4, 1)
|
||||
theme_override_colors/font_color = Color(1, 0.596078, 0.4, 1)
|
||||
theme_override_styles/focus = SubResource("StyleBoxEmpty_7hsq1")
|
||||
editable = false
|
||||
context_menu_enabled = false
|
||||
shortcut_keys_enabled = false
|
||||
middle_mouse_paste_enabled = false
|
||||
selecting_enabled = false
|
||||
deselect_on_focus_loss_enabled = false
|
||||
script = ExtResource("1_8lkgc")
|
||||
|
||||
[node name="CheckButton" type="CheckButton" parent="."]
|
||||
material = SubResource("ShaderMaterial_xxfw6")
|
||||
@@ -29,4 +28,4 @@ offset_left = 453.0
|
||||
offset_top = 1.5
|
||||
offset_right = 497.0
|
||||
offset_bottom = 25.5
|
||||
theme_override_styles/focus = SubResource("StyleBoxEmpty_y8485")
|
||||
theme_override_styles/focus = SubResource("StyleBoxEmpty_8lkgc")
|
||||
|
||||
24
table/ячейка-2.gd
Normal file
24
table/ячейка-2.gd
Normal file
@@ -0,0 +1,24 @@
|
||||
extends LineEdit
|
||||
|
||||
func _ready():
|
||||
_update_background()
|
||||
|
||||
func _process(_delta):
|
||||
_update_background()
|
||||
|
||||
func _update_background() -> void:
|
||||
var is_light: bool = ProjectSettings.get_setting("application/config/Цвет темы программы", false)
|
||||
var style = get_theme_stylebox("normal").duplicate()
|
||||
var style_1 = get_theme_stylebox("read_only").duplicate()
|
||||
if is_light:
|
||||
style.bg_color = Color.GRAY
|
||||
style_1.bg_color = Color.GRAY
|
||||
add_theme_color_override("font_color", Color.BLACK)
|
||||
add_theme_color_override("font_uneditable_color", Color.BLACK)
|
||||
else:
|
||||
style.bg_color = Color(0.12, 0.12, 0.12)
|
||||
style_1.bg_color = Color(0.12, 0.12, 0.12)
|
||||
add_theme_color_override("font_color", Color(1.0, 0.596, 0.4))
|
||||
add_theme_color_override("font_uneditable_color", Color(1.0, 0.596, 0.4))
|
||||
add_theme_stylebox_override("normal", style)
|
||||
add_theme_stylebox_override("read_only", style_1)
|
||||
1
table/ячейка-2.gd.uid
Normal file
1
table/ячейка-2.gd.uid
Normal file
@@ -0,0 +1 @@
|
||||
uid://dqexdg24cp6rq
|
||||
@@ -1,4 +1,6 @@
|
||||
[gd_scene load_steps=2 format=3 uid="uid://dspa16ufrpanp"]
|
||||
[gd_scene load_steps=3 format=3 uid="uid://dspa16ufrpanp"]
|
||||
|
||||
[ext_resource type="Script" uid="uid://dqexdg24cp6rq" path="res://table/ячейка-2.gd" id="1_0fmuf"]
|
||||
|
||||
[sub_resource type="StyleBoxEmpty" id="StyleBoxEmpty_mla3y"]
|
||||
|
||||
@@ -16,3 +18,4 @@ selecting_enabled = false
|
||||
deselect_on_focus_loss_enabled = false
|
||||
caret_blink = true
|
||||
caret_blink_interval = 0.1
|
||||
script = ExtResource("1_0fmuf")
|
||||
|
||||
16
table/ячейка-цвет.gd
Normal file
16
table/ячейка-цвет.gd
Normal file
@@ -0,0 +1,16 @@
|
||||
extends ColorPickerButton
|
||||
|
||||
func _ready():
|
||||
_update_background()
|
||||
|
||||
func _process(_delta):
|
||||
_update_background()
|
||||
|
||||
func _update_background() -> void:
|
||||
var is_light: bool = ProjectSettings.get_setting("application/config/Цвет темы программы", false)
|
||||
var style = get_theme_stylebox("normal").duplicate()
|
||||
if is_light:
|
||||
style.bg_color = Color.GRAY
|
||||
else:
|
||||
style.bg_color = Color(0.12, 0.12, 0.12)
|
||||
add_theme_stylebox_override("normal", style)
|
||||
1
table/ячейка-цвет.gd.uid
Normal file
1
table/ячейка-цвет.gd.uid
Normal file
@@ -0,0 +1 @@
|
||||
uid://b36c83manfems
|
||||
@@ -1,4 +1,6 @@
|
||||
[gd_scene format=3 uid="uid://cug5xjbfdm7x7"]
|
||||
[gd_scene load_steps=2 format=3 uid="uid://cug5xjbfdm7x7"]
|
||||
|
||||
[ext_resource type="Script" uid="uid://b36c83manfems" path="res://table/ячейка-цвет.gd" id="1_ce8lu"]
|
||||
|
||||
[node name="ячейка-цвет" type="ColorPickerButton"]
|
||||
anchors_preset = 15
|
||||
@@ -6,3 +8,4 @@ anchor_right = 1.0
|
||||
anchor_bottom = 1.0
|
||||
grow_horizontal = 2
|
||||
grow_vertical = 2
|
||||
script = ExtResource("1_ce8lu")
|
||||
|
||||
Reference in New Issue
Block a user