summaryrefslogtreecommitdiff
path: root/scene/resources/default_theme/default_theme.cpp
AgeCommit message (Collapse)Author
2022-02-09Updated alpha value for disabled icons in default theme.MisoMosiSpy
2022-02-08Revert "Add missing SNAME macro optimization to all theme methods call"Rémi Verschelde
This reverts commit a988fad9a092053434545c32afae91ccbdfbe792. As discussed in #57725 and clarified in #57788, `SNAME` is not meant to be used everywhere but only in critical code paths. For theme methods specifically, it was by design that only getters use `SNAME` and not setters.
2022-02-06Add missing SNAME macro optimization to all theme methods calljmb462
2022-01-31Merge pull request #56970 from YeldhamDev/rise_tabbar_riseRémi Verschelde
2022-01-31Bring `TabBar` to full parity with the `TabContainer` implementation.Michael Alexsander
2022-01-30Move placeholder color to theme itemPaulb23
2022-01-19Improve the default project themeHugo Locurcio
The new default project theme uses StyleBoxFlat extensively for a more modern design and better scalability to multiple resolutions. SVG icons are now used in place of PNG icons. While this does not allow for true vector-based icon drawing (icons are still rasterized at load-time), this makes the design work easier for contributors and opens the door to vector drawing in the future (e.g. with polygons or SDFs). Like for editor icons, the SVG header file is now built automatically when a SVG file is changed. This removing the need for running `make_header.py` manually (TODO). The "Use Hidpi" project setting has been removed in favor of a "Default Theme Scale" project setting, which allows creating the default theme at a higher/lower scale than the default. This can be used when designing GUIs with a high base resolution to ensure crisp visuals. Co-authored-by: Yuri Sizov <yuris@humnom.net>
2022-01-18Merge pull request #56104 from Geometror/add-flow-layout-containerRémi Verschelde
Add FlowContainer
2022-01-14Merge pull request #56738 from YeldhamDev/improve_tab_consistencyRémi Verschelde
2022-01-13Merge pull request #54956 from ↵Rémi Verschelde
Calinou/lineedit-textedit-add-caret-width-theme-item Add a theme constant to change LineEdit and TextEdit's caret width
2022-01-12Improve looks and consistency of tabsMichael Alexsander
2022-01-11Merge pull request #56323 from ↵Rémi Verschelde
Gallilus/Update-default-port_grab_distance_vertical
2022-01-07Add a theme constant to change LineEdit and TextEdit's caret widthHugo Locurcio
This can be useful to improve caret visibility, especially at larger font sizes. This can also be used for accessibility purposes.
2022-01-07Add FlowContainerHendrik Brucker
2022-01-06Merge pull request #56376 from pycbouh/theme-tombe-les-theme-propertiesRémi Verschelde
2022-01-03Update copyright statements to 2022Rémi Verschelde
Happy new year to the wonderful Godot community!
2021-12-31Correctly use fallback Theme values as last resortYuri Sizov
2021-12-29Update default port_grab_distance_verticalDavid Cambré
2021-11-06Fix Label and RichTextLabale text shadows and shadow outlines.bruvzg
2021-10-26Add focus font color to Button and derivativesYuri Sizov
2021-10-25Ignore empty Font resources as theme override.bruvzg
Add range hint to font_size properties. Remove excessive `base_size` Font property.
2021-10-19Rename `Tabs` to `TabBar`Michael Alexsander
2021-10-04Add the base scale factor to the Theme resourceYuri Sizov
2021-09-30Rename some elements of `Tabs`Michael Alexsander
2021-09-23Construct values only when necessary.Anilforextra
2021-09-21Added search colors to TextEdit and CodeEdit themePaulb23
2021-09-13Merge pull request #51805 from skysphr/scrollbar-icons-pressedHugo Locurcio
Added increment_pressed and decrement_pressed icons to scrollbars
2021-08-27Makes FontData importable resource.bruvzg
Adds multi-channel SDF font texture generation and rendering support. Adds per-font oversampling support. Adds FontData import plugins (for dynamic fonts, BMFonts and monospaced image fonts), font texture cache pre-generation and loading. Adds BMFont binary format and outline support.
2021-08-22Merge pull request #51700 from Geometror/fix-color-pickerK. S. Ernest (iFire) Lee
Reimplement ColorPicker presets
2021-08-20Merge pull request #51866 from requizm/fix/49455Hugo Locurcio
Fix `line_separation` working incorrectly in `RichTextLabel`
2021-08-20Fix line_separation constant working incorrectly in RichTextLabelrequizm
2021-08-18Reimplement ColorPicker presetsHendrik Brucker
2021-08-17Added increment_pressed and decrement_pressed icons to scrollbarsskysphr
2021-08-16Added icons and API for indeterminate checkmarks for the Tree class.Kevin Fischer
2021-08-12Better port handling connection for `GraphEdit`Yuri Roubinsky
2021-08-10Merge pull request #49343 from theoway/node_auto_arrangement_graph_editK. S. Ernest (iFire) Lee
Node Auto Arrangement in GraphEdit/VisualScript/VisualShader
2021-08-11Automatic arrangement of nodes in VisualScript/VisualShaders editorsUmang Kalra
This PR and commit adds the functionality to arrange nodes in VisualScript/VisualShader editor. The layout generated by this feature is compact, with minimum crossings between connections & uniform horizontal & vertical gaps between the nodes. This work has been sponsored by GSoC '21. Full list of additions/changes: • Added arrange_nodes() method in GraphEdit module. • This method computes new positions for all the selected nodes by forming blocks and compressing them. The nodes are moved to these new positions. • Adding this method to GraphEdit makes it available for use in VisualScript/VisualShaders editors and its other subclasses. • Button with an icon has been added to call arrange_nodes() in GraphEdit. • This button is inherited by VisualScript/VisualShaders editors to invoke the method. • Undo/redo is functional with this method. • By using signals in arrange_nodes(), position changes are registered in undo/redo stack of the subclass that is using the method. • Metadata of the method has been updated in ClassDB • Method description has been added to class reference of GraphEdit
2021-08-07Fix Gradient, Color Picker BG, Fix CanvasItem::draw_texture_rect p_tileNathan Franke
2021-08-01Clean up and complete CodeEdit inspector and docsPaulb23
2021-08-01Move line length guidelines into CodeEditPaulb23
2021-08-01Move brace matching into CodeEditPaulb23
2021-07-27Multiple cosmetic fixes for embedded windowsMichael Alexsander
2021-07-13Add header theme type variations to labelskobewi
2021-06-19Rename `instance()`->`instantiate()` when it's a verbLightning_A
2021-06-01Move code folding into CodeEdit and hide line hiding APIPaulb23
2021-06-01Move and expose AutoComplete in CodeEditPaulb23
2021-05-25Add highlight to the relationship lines of selected Tree itemsYuri Sizov
2021-05-22Add custom background line colour to TextEdit and remove marked linesPaulb23
2021-05-17Use a DynamicFont for the default project themeHugo Locurcio
This makes font oversampling work out of the box, while also increasing the supported character set's size. The default font is now larger as well to better fit today's screen resolutions. The OpenSans SemiBold font was chosen for two reasons: - Small file size, yet its character set supports Latin-1 and Cyrillic text. - A heavier font weight looks better in most "game" scenarios and is more readable against mixed-color backgrounds. This is considered a breaking change as it changes the default font's metrics, which will likely affect how Control nodes are laid out in scenes (unless a custom font is in use).
2021-04-27Tabs: Remove unused 'panel' stylebox from default themeRémi Verschelde
Cf. https://github.com/godotengine/godot/issues/37875#issuecomment-625297308.