summaryrefslogtreecommitdiff
path: root/editor/editor_themes.cpp
AgeCommit message (Collapse)Author
2023-01-28Add a theme usability setting which updates the touch area of UI elements ↵Fredia Huya-Kouadio
(e.g: scrollbar) for the editor on touchscreen devices
2023-01-26Remove size restrictions from StyleBoxTextureYuri Sizov
2023-01-19Clean-up, harmonize, and improve StyleBox APIYuri Sizov
- Make all margin properties follow the same naming convention (their getter and setter too). - Remove a virtual counterpart of `get_style_margin` from API. - Allow to override `get_minimum_size` from scripting and remove `get_center_size`.
2023-01-12Add framework for avoidance of color flash in new windowsPedro J. Estébanez
2023-01-09Removed unused property hints and `Object::get_translatable_strings()`Juan Linietsky
* Remove unused `EditorPropertyMember` and related hints, previouly used by VisualScript. Such logic should be implemented in the VS module itself. * As the above broke compatibility with the VS module, clean up the other hacks that were still in core in support of VisualScript. * `PROPERTY_USAGE_INTERNATIONALIZED` was only used in Object's `get_translatable_strings()`, which is a legacy function not used anywhere. So both are removed. * Reordered some usage flags after the above removal to minimize the diff. * General clean up. Fixes #30203. Co-authored-by: Rémi Verschelde <rverschelde@gmail.com>
2023-01-05One Copyright Update to rule them allRémi Verschelde
As many open source projects have started doing it, we're removing the current year from the copyright notice, so that we don't need to bump it every year. It seems like only the first year of publication is technically relevant for copyright notices, and even that seems to be something that many companies stopped listing altogether (in a version controlled codebase, the commits are a much better source of date of publication than a hardcoded copyright statement). We also now list Godot Engine contributors first as we're collectively the current maintainers of the project, and we clarify that the "exclusive" copyright of the co-founders covers the timespan before opensourcing (their further contributions are included as part of Godot Engine contributors). Also fixed "cf." Frenchism - it's meant as "refer to / see".
2022-11-28Merge pull request #67871 from Calinou/editor-theme-add-oled-presetRémi Verschelde
Add Black (OLED) editor theme preset
2022-11-23ImageLoaderSVG: Improve error reportingRémi Verschelde
2022-11-14Merge pull request #68132 from Mickeon/doc-help-colourfulRémi Verschelde
Improve Editor Documentation colors
2022-11-01Improve Editor Documentation colorsMicky
2022-10-31Merge pull request #67578 from KoBeWi/GEDITORRémi Verschelde
Unify usage of GLOBAL/EDITOR_GET
2022-10-26Remove override_selected_font_color propertykobewi
2022-10-26Add Black (OLED) editor theme presetHugo Locurcio
This preset uses a fully black background to reduce power usage on OLED displays, leading to increased battery life on laptops with OLED displays. This preset is also useful for late night sessions, as OLED displays have a near-infinite contrast ratio. This also adds a Draw Extra Borders editor setting which draws borders around some interactive nodes. This setting is required for good usability of a theme with a fully black background. Visibility of disabled text (including unselected tab names) has been slightly increased for better accessibility, regardless of the editor theme preset in use.
2022-10-18Unify usage of GLOBAL/EDITOR_GETkobewi
2022-10-11Polish rendering driver refactor further (take 2)Pedro J. Estébanez
2022-10-07Merge pull request #62910 from Vitika9/gsoc-colorpicker-uxRémi Verschelde
ColorPicker UX
2022-09-30Fix typos with codespellRémi Verschelde
Using codespell 2.3-dev from current git. And fix typo in `methods.py` for `vsproj=yes` option (still won't work though).
2022-09-16Improve icon generation in the editor themeYuri Sizov
2022-09-12Fix some errors affecting the Web editorRémi Verschelde
- Don't warn about minimized/maximized modes not being available. - Blender and FBX export both depend on running thirdparty applications, which can't be done (easily at least) for Web and Android editors. - Editor theme complained about not being able to retrieve texture data for an icon. It was only used once so instead of flipping at runtime, let's just add a flipped icon. Part of #65702.
2022-09-07Allow images to be imported "for editor use" and respect editor settingsYuri Sizov
2022-09-07Merge pull request #59069 from fire-forge/stylebox_margin_functionsRémi Verschelde
Add all/individual setters for StyleBox default margins and StyleBoxTexture margin size and unbind `StyleBox*.set_*_individual()` methods
2022-09-07Merge pull request #65355 from groud/split_container_min_grab_thicknessRémi Verschelde
Allow SplitContainer to have a grab area larger than its visual grabber
2022-09-07Add set_default_margin_all/individual to StyleBoxFireForge
2022-09-07Allow SplitContainer to have a grab area larger than its visual grabberGilles Roudière
2022-09-07Merge pull request #65446 from YuriSizov/dialogs-make-styleboxes-matterRémi Verschelde
Make `AcceptDialog` and derivatives utilize `StyleBox` fully
2022-09-07Make AcceptDialog and derivatives utilize StyleBox fullyYuri Sizov
2022-09-06Improve naming of theme properties throughout GUI codeYuri Sizov
Rename ItemList's bg -> panel Rename ItemList's bg_focus -> focus Rename ProgressBar's bg -> background Rename ProgressBar's fg -> fill Rename Tree's bg -> panel Rename Tree's bg_focus -> focus Rename ScrollContainer's bg -> panel Rename FileDialog's *_icon_modulate -> *_icon_color Rename FileDialog's files_disabled -> file_disabled_color Rename CheckButton's on/off -> checked/unchecked Rename check_v_adjust -> check_v_offset
2022-09-06ColorPicker UX improvementsVitika9
- Tabs and MenuButton for mode selection and enabling/disabling colorized sliders - MenuButton for shape selection with new icon for each shape - Drag and drop functionality for presets to arrange order - A chronological list of recently selected presets which are global for the editor - Presets are now highlighted as being active or inactive - Thicker sliders for easy targeting - `grabber_offset` theme constant for Slider - Uncolorized sliders
2022-09-05Various editor UI fixes (bottom panel corner radius and scene tab bar)FireForge
- Fix top corners of bottom panel not having rounded corners - Fix scene tab bar background expanding vertically by corner radius - Remove two unneccesary theme items from the editor theme: - EditorStyles/SceneTabFG - EditorStyles/SceneTabBG - Remove an instance where the scene TabBar was having its styleboxes overriden to the default value, which has no effect.
2022-09-05Merge pull request #65230 from fire-forge/itemlist-spacingYuri Sizov
2022-09-02Merge pull request #65181 from fire-forge/corner-detailsRémi Verschelde
2022-09-02EditorTheme: Remove rounded corners for all popupsRedMser
Expands #59045 to apply to all kinds of popups, since they all render as separate windows.
2022-09-01Increase ItemList v_separation in editor themeFireForge
ItemList now uses the same value for v_separation as PopupMenu. This makes it easier to select items.
2022-09-01Rework oriented containerskobewi
2022-09-01Decrease StyleBoxFlat corner detail in editor themeFireForge
Also makes some minor changes to other areas of the editor theme.
2022-08-30Merge pull request #65089 from YuriSizov/editor-launch-bar-with-styleRémi Verschelde
Improve style and add contextual highlight to the editor launch pad
2022-08-30Merge pull request #65042 from YuriSizov/editor-docks-tabbar-bgRémi Verschelde
2022-08-30Improve style and add contextual highlight to the editor launch padYuri Sizov
2022-08-29Add background to TabContainer's tabbar and editor docksYuri Sizov
2022-08-29Fix some editor theme regressionsYuri Sizov
2022-08-24Extract editor color map and simplify SVG color conversionYuri Sizov
2022-08-23Disable editing properties in foreign resourcesSaracenOne
from imported scenes or objects returning true from a function named '_is_read_only' and disable resaving imported resources.
2022-08-20Create a SVG default project icon in new projectsHugo Locurcio
This allows the icon's scale to be changed using the `svg/scale` import option, including to scales greater than the default 128×128. Co-authored-by: bruvzg <7645683+bruvzg@users.noreply.github.com>
2022-08-19Merge pull request #59045 from Calinou/editor-theme-popup-no-rounded-cornersYuri Sizov
Don't use rounded corners for PopupMenus in the editor theme
2022-08-19Merge pull request #63950 from bruvzg/menu_bar3Max Hilbrunner
Implement MenuBar control to wrap Popup menus or native menu, use native menu for editor.
2022-08-18Don't use rounded corners for PopupMenus in the editor themeHugo Locurcio
PopupMenus use separate windows by default in the editor, and windows no longer support per-pixel transparency for now in 4.0. Even if per-pixel transparency was reimplemented, we can't assume that it'll always work in practice (e.g. when compositing is disabled).
2022-08-18Implement `MenuBar` control to wrap `PopupMenu`s or native menu, use native ↵bruvzg
menu for editor.
2022-08-16Improve editor toolbar for Control nodesYuri Sizov
2022-08-11Add missing properties to default themekobewi
2022-08-05Tweak PopupMenu item spacing in the editor themeHugo Locurcio
- Increase spacing between items for easier clicking with the mouse. - Increase lateral margins for better visual appearance. - Decrease margin at the top and bottom to compensate for the increased per-item height.