9628fce2f3
Apply fix_alpha_edges for both theme icons and font glyphs.
...
Only apply fix_alpha_edges for SVG glyphs.
Allow modulate for svg glyphs.
(cherry picked from commit 70a8421c30 )
2025-03-12 14:59:04 +01:00
2eded468f9
Add ColorPicker cursor background and reuse the cursor for wheel.
...
Add a cursor's background to fill the picker cursor.
Unhardcode the wheel radius.
Reuse the picker cursor image for the HSV wheel.
2025-01-10 09:55:54 +02:00
9eeeadb037
ColorPicker: Improve the accuracy of hue slider in OKHSL mode
2025-01-04 21:36:27 +08:00
73d85f46c9
Remove unused headers in scene.
...
Co-authored-by: Thaddeus Crews <repiteo@outlook.com >
Co-authored-by: A Thousand Ships <96648715+AThousandShips@users.noreply.github.com >
2024-12-24 00:40:09 +08:00
0a875ab3bb
Highlight hovered GraphEdit connection by widening the line
...
This change causes the connections to be additionally highlighted by
widening the line with a configurable factor.
2024-12-20 00:55:35 +01:00
b05111799b
ItemList - highlight selected items && draw cursor last
2024-12-14 19:03:43 +01:00
9a8d6628de
[Scene] Add SceneStringName::hover
2024-12-11 11:11:25 +03:00
ba39b078f5
[Scene] Add SceneStringName::FlatButton
2024-12-10 11:12:26 +03:00
e6a49ab6ac
Save color palette as resources to reuse later
...
Co-authored-by: Micky <66727710+Mickeon@users.noreply.github.com >
2024-12-06 20:16:06 +07:00
86ea0127a3
Add a focus border on ScrollContainer
...
Also added new unit tests for `Control`.
Co-authored-by: ator-dev <dominic.codedeveloper@gmail.com >
2024-11-23 23:54:38 -03:00
77da16ce69
Merge pull request #88530 from davthedev/tree-hover-items
...
Add hover state to Tree items display
2024-10-21 16:39:16 -05:00
af6d260c17
Don't include core/io/image.h in core/os/os.h
...
`core/os/os.h` doesn't use `core/io/image.h`. It just brings
transitive dependencies. Lots of dependencies because `core/os/os.h`
is transitively included in almost every file of godot
Also added `core/io/image.h` into files^1 where `Ref<Image>` and `core/os/os.h`
were used to prevent obscure errors involving `Ref<Image>`
^1 except those which include `core/io/image_loader.h` or `core/io/image.h` by
corresponding .h file with the same name
Signed-off-by: Yevhen Babiichuk (DustDFG) <dfgdust@gmail.com >
Co-authored-by: A Thousand Ships <96648715+AThousandShips@users.noreply.github.com >
2024-10-18 19:04:19 +03:00
ebe1a2d7ec
Add hover state to Tree items display
2024-10-17 00:21:52 +02:00
62edb4eee8
Add filename filter field to FileDialog
...
Added possibility to filter files and folders through a text entry.
2024-10-04 11:12:33 +02:00
cb86afdef9
Merge pull request #72680 from Koyper/split_container_improvements
...
Improvements to SplitContainer including a drag bar background StyleBox
2024-09-17 21:01:45 +02:00
f7005deb1e
Improvements to SplitContainer including a drag bar background StyleBox.
2024-09-14 19:35:51 -05:00
bde64c4633
Deprecate set_min_buttons_width_from_icons
2024-09-05 15:43:54 +02:00
b4eacfe0ce
Merge pull request #95285 from Calinou/codeedit-completion-color-background-translucent
...
Draw a checkerboard behind translucent colors in CodeEdit autocompletion previews
2024-08-27 22:27:49 +02:00
e371587147
Improve SpinBox interaction, split arrows, add theme attributes
2024-08-23 18:21:20 +02:00
fb88658cc8
Draw a checkerboard behind translucent colors in CodeEdit autocompletion previews
...
This makes translucent colors easier to interpret as such
and is consistent with how they're displayed in ColorPicker.
2024-08-09 00:03:11 +02:00
d519715d94
[Scene] Add SceneStringNames::font(_size/_color)
2024-06-18 17:24:27 +02:00
721a663aa3
[Button] Adds theme option to align button text and icon to either largest or current stylebox.
2024-06-10 18:40:52 +03:00
9c87e8c7b4
Merge pull request #91953 from AThousandShips/use_normal_sname
...
Use `CoreStringNames::normal` in more places
2024-05-31 14:16:05 +02:00
cade5b88d9
Use CoreStringNames::normal in more places
2024-05-30 22:57:54 +02:00
926afccbd8
[Scene] Add SceneStringNames::panel
2024-05-30 22:54:50 +02:00
ee79386f7b
[Scene] Add SceneStringNames::pressed
2024-05-14 15:51:28 +02:00
413c11357d
Use Core/Scene stringnames consistently
2024-05-13 23:41:07 +02:00
167b0ac8d5
Remove border roundness inside panels of AcceptDialog windows
2024-04-06 00:01:16 -03:00
a81561cbd9
Add GraphFrame and integrate it in VisualShader
2024-04-04 15:11:00 +02:00
479b7afa8e
Add context support for editor property name i18n
2024-03-31 18:40:14 +08:00
da916221a7
Merge pull request #88577 from davthedev/itemlist-light-refactor
...
Fix item positioning, text alignment & unwanted clipping of ItemList items
2024-02-29 13:54:03 +01:00
3fe01226b7
Use black for font outlines by default instead of white
...
This makes font outlines more usable out of the box, as black
is one of the most commonly used colors for font outlines.
2024-02-28 20:25:15 +01:00
f63728cb9f
Fix item positioning & pointer detection areas of ItemList
2024-02-27 20:03:10 +01:00
fd3666298c
Add create folder icon
2024-02-26 09:04:24 -05:00
66b0bd9203
Merge pull request #86158 from Geometror/ge-connection-rework
...
Rework `GraphEdit` connections (drawing, API, optimizations)
2024-01-18 19:26:56 +01:00
9d7c2978f4
Rework GraphEdit connections (drawing, API, optimizations)
...
- GraphEdit now uses Line2D nodes to draw connection lines and uses a dedicated canvas item shader for them
2024-01-18 16:53:15 +01:00
f29a7d302e
Make the drawing logic clearer in Button
...
The drawing logic follows the calculation logic in `Button::get_minimum_size`.
According to the order of `stylebox`, `icon`, and `text`, and follow properties
such as alignment mode, to fill the display space of the button.
Add a `Button::_set_h_separation_is_valid_when_no_text` for Button derived
classes (like `OptionButton`) that expects a `h_separation` between `icon`
and theme icon even if the `text` is empty.
2024-01-18 22:57:22 +08:00
95b27fe8c7
Reorganize code related to editor theming
...
This change introduces a new EditorThemeManager class
to abstract theme generatio and its subroutines.
Logic related to EditorTheme, EditorColorMap, and editor
icons has been extracted into their respective files with
includes cleaned up.
All related files have been moved to a separate folder to
better scope them in the project. This includes relevant
generated files as well.
2024-01-16 11:57:45 +01:00
365755fb34
Merge pull request #84946 from DarkMessiah/default-theme-checkbox-disabled-state
...
Use disabled icons for CheckBox in DefaultTheme
2024-01-10 12:03:12 +01:00
a6dc1b3907
Merge pull request #84527 from Calinou/colorpicker-display-revert-icon
...
Display a revert icon on ColorPicker's old sample
2024-01-03 09:59:06 +01:00
ff59496632
Use disabled icons for CheckBox in DefaultTheme
2023-11-19 22:01:53 +01:00
ff8797e980
Implement disabled state for Checkbox in Tree
2023-11-15 17:13:34 +01:00
079f1c8ead
Display a revert icon on ColorPicker's old sample
...
This denotes that the color can be clicked to revert to the old color.
2023-11-07 10:04:39 +01:00
d92c02002f
Merge pull request #82653 from MewPurPur/simplify-region-folding-icon
...
Tweak the region folding icons
2023-10-04 15:35:57 +02:00
b07c664af9
Make GraphEdit toolbar more customizable
...
Also adds a semi-transparent background
to make the toolbar stand out in front of nodes.
2023-10-02 13:43:08 +02:00
05aaa04b4d
Tweak the region folding icons
2023-10-02 04:55:16 +03:00
596dd726a1
Use bound theme properties for documentation
2023-09-26 18:48:51 +02:00
8ddf73c74d
Merge pull request #81939 from YuriSizov/gui-flat-and-depressed
...
Replace flat buttons with flat-styled buttons with a visible pressed state
2023-09-25 17:18:29 +02:00
4bd569be95
Replace flat buttons with flat-styled buttons with a visible pressed state
2023-09-19 22:36:29 +02:00
18811ac814
Allow to focus individual tabs in TabBar/TabContainer
2023-09-17 18:49:48 +02:00