summaryrefslogtreecommitdiffstats
path: root/scene/resources/theme.h
Commit message (Collapse)AuthorAgeFilesLines
* Fix copyright headers referring to GodotSpartan3222024-10-271-2/+2
|
* Rebrand preambles to RedotDubhghlas McLaughlin2024-10-111-0/+2
| | | | | | | | | | | | | | | | | | | | | | Credits: Co-authored-by: Skogi <skogi.b@gmail.com> Co-authored-by: Spartan322 <Megacake1234@gmail.com> Co-authored-by: swashberry <swashdev@pm.me> Co-authored-by: Christoffer Sundbom <christoffer_karlsson@live.se> Co-authored-by: Dubhghlas McLaughlin <103212704+mcdubhghlas@users.noreply.github.com> Co-authored-by: McDubh <103212704+mcdubhghlas@users.noreply.github.com> Co-authored-by: Dubhghlas McLaughlin <103212704+mcdubhghlas@users.noreply.github.com> Co-authored-by: radenthefolf <radenthefolf@gmail.com> Co-authored-by: John Knight <80524176+Tekisasu-JohnK@users.noreply.github.com> Co-authored-by: Adam Vondersaar <adam.vondersaar@uphold.com> Co-authored-by: decryptedchaos <nixgod@gmail.com> Co-authored-by: zaftnotameni <122100803+zaftnotameni@users.noreply.github.com> Co-authored-by: Aaron Benjamin <lifeartstudios@gmail.com> Co-authored-by: wesam <108880473+wesamdev@users.noreply.github.com> Co-authored-by: Mister Puma <MisterPuma80@gmail.com> Co-authored-by: Aaron Benjamin <lifeartstudios@gmail.com> Co-authored-by: SingleError <isaaconeoneone@gmail.com> Co-authored-by: Bioblaze Payne <BioblazePayne@gmail.com>
* Improve Editor Inspector/Theme item lookup performanceaaronp642024-08-201-1/+1
| | | | | | | | | | | Changes to reduce the latency between changing node selection in the editor and seeing the new node reflected in the Inspector tab - Use Vector instead of List for ThemeOwner::get_theme_type_dependencies and related functions - Use Vector instead of List for ThemeContext::themes, set_themes(), and get_themes() - Add ClassDB:get_inheritance_chain_nocheck to get all parent/ancestor classes at once, to avoid repeated ClassDB locking overhead - Update BIND_THEME_ITEM macros and ThemeDB::update_class_instance_items to use provided StringNames for call to ThemeItemSetter, instead of creating a new StringName in each call These changes reduce the time taken by EditorInspector::update_tree by around 30-35%
* Add const lvalue ref to container parametersMuller-Castro2024-01-051-7/+7
|
* Warn about accessing non-existing editor theme itemsYuri Sizov2023-09-151-15/+15
|
* One Copyright Update to rule them allRémi Verschelde2023-01-051-29/+29
| | | | | | | | | | | | | | | | | | | | 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".
* Add ThemeDB, expose previously static Theme methodsYuri Sizov2022-08-261-29/+0
|
* Code quality: Fix header guards consistencyRémi Verschelde2022-07-251-1/+1
| | | | | Adds `header_guards.sh` bash script, used in CI to validate future changes. Can be run locally to fix invalid header guards.
* Define some Theme data structures with using for readabilityYuri Sizov2022-05-181-6/+13
|
* Validate theme type/item namesHaoyu Qiu2022-04-261-0/+3
|
* Merge pull request #57641 from Geometror/compilation-time-improvements-1Rémi Verschelde2022-02-121-1/+0
|\
| * Improve compilation speed (forward declarations/includes cleanup)Hendrik Brucker2022-02-121-1/+0
| |
* | Add an explicit way to remove a theme typeYuri Sizov2022-02-111-0/+9
|/
* Merge pull request #56376 from pycbouh/theme-tombe-les-theme-propertiesRémi Verschelde2022-01-061-25/+31
|\
| * Correctly use fallback Theme values as last resortYuri Sizov2021-12-311-25/+31
| |
* | Update copyright statements to 2022Rémi Verschelde2022-01-031-2/+2
|/ | | | Happy new year to the wonderful Godot community!
* Make Theme report property list changes less oftenYuri Sizov2021-10-041-1/+1
|
* Add the base scale factor to the Theme resourceYuri Sizov2021-10-041-0/+9
|
* Reorganize Theme resource code for better maintainabilityYuri Sizov2021-10-021-1/+5
|
* Add support for partial custom editor themesYuri Sizov2021-08-141-2/+1
|
* Add type variations to ThemeYuri Sizov2021-07-131-1/+11
|
* Overhaul the theme editor and improve user experienceYuri Sizov2021-06-141-0/+1
|
* Prevent Theme resource from emitting changes during bulk operationsYuri Sizov2021-05-311-0/+10
|
* Add theme_custom_type property to Control and WindowYuri Sizov2021-05-171-63/+64
|
* Refactor Edit Theme menu in Theme EditorYuri Sizov2021-04-181-0/+7
|
* Add utility methods to Theme, improve error messages and documentationYuri Sizov2021-03-221-0/+40
|
* Improve resource load cachereduz2021-02-111-0/+2
| | | | | | -Added a new method in Resource: reset_state , used for reloading the same resource from disk -Added a new cache mode "replace" in ResourceLoader, which reuses existing loaded sub-resources but resets their data from disk (or replaces them if they chaged type) -Because the correct sub-resource paths are always loaded now, this fixes bugs with subresource folding or subresource ordering when saving.
* Update copyright statements to 2021Rémi Verschelde2021-01-011-2/+2
| | | | | | | | | | | | | | Happy new year to the wonderful Godot community! 2020 has been a tough year for most of us personally, but a good year for Godot development nonetheless with a huge amount of work done towards Godot 4.0 and great improvements backported to the long-lived 3.2 branch. We've had close to 400 contributors to engine code this year, authoring near 7,000 commit! (And that's only for the `master` branch and for the engine code, there's a lot more when counting docs, demos and other first-party repos.) Here's to a great year 2021 for all Godot users 🎆
* Remove unused argument in Theme method and expose missing methodsYuri Sizov2020-12-171-3/+11
|
* Cleanup unused engine codeTomasz Chabora2020-12-091-8/+0
|
* [Complex Text Layouts] Refactor Font class, default themes and controls to ↵bruvzg2020-11-261-0/+14
| | | | | | | | use Text Server interface. Implement interface mirroring. Add TextLine and TextParagraph classes. Handle UTF-16 input on macOS and Windows.
* Merge pull request #42008 from Calinou/theme-rename-node-typeRémi Verschelde2020-11-161-40/+40
|\ | | | | Rename the `type` parameter to `node_type` in Theme and Control
| * Rename the `type` parameter to `node_type` in Theme and ControlHugo Locurcio2020-10-271-40/+40
| | | | | | | | | | | | | | This makes it clearer that it expects a node type as a string (such as "Label") instead of a type like "TYPE_ARRAY". This is backwards-compatible since only the name of the parameter is changed, not its order.
* | Reorganized core/ directory, it was too fatty alreadyreduz2020-11-071-1/+1
|/ | | | | | -Removed FuncRef, since Callable makes it obsolete -Removed int_types.h as its obsolete in c++11+ -Changed color names code
* Style: clang-format: Disable KeepEmptyLinesAtTheStartOfBlocksRémi Verschelde2020-05-141-1/+0
| | | | | | | | | | | | | | Which means that reduz' beloved style which we all became used to will now be changed automatically to remove the first empty line. This makes us lean closer to 1TBS (the one true brace style) instead of hybridating it with some Allman-inspired spacing. There's still the case of braces around single-statement blocks that needs to be addressed (but clang-format can't help with that, but clang-tidy may if we agree about it). Part of #33027.
* Remove redundant void argument listsRémi Verschelde2020-05-141-1/+1
| | | | | Using clang-tidy's `modernize-redundant-void-arg`. https://clang.llvm.org/extra/clang-tidy/checks/modernize-redundant-void-arg.html
* Style: Set clang-format Standard to Cpp11Rémi Verschelde2020-03-171-6/+6
| | | | | | | | | | For us, it practically only changes the fact that `A<A<int>>` is now used instead of the C++03 compatible `A<A<int> >`. Note: clang-format 10+ changed the `Standard` arguments to fully specified `c++11`, `c++14`, etc. versions, but we can't use `c++17` now if we want to preserve compatibility with clang-format 8 and 9. `Cpp11` is still supported as deprecated alias for `Latest`.
* PoolVector is gone, replaced by VectorJuan Linietsky2020-02-181-7/+7
| | | | | Typed `PoolTypeArray` types are now renamed `PackedTypeArray` and are sugar for `Vector<Type>`.
* Texture refactorJuan Linietsky2020-02-111-5/+5
| | | | | | | | -Texture renamed to Texture2D -TextureLayered as base now inherits 2Darray, cubemap and cubemap array -Removed all references to flags in textures (they will go in the shader) -Texture3D gone for now (will come back later done properly) -Create base rasterizer for RenderDevice, RasterizerRD
* Update copyright statements to 2020Rémi Verschelde2020-01-011-2/+2
| | | | | | | | | | | Happy new year to the wonderful Godot community! We're starting a new decade with a well-established, non-profit, free and open source game engine, and tons of further improvements in the pipeline from hundreds of contributors. Godot will keep getting better, and we're looking forward to all the games that the community will keep developing and releasing with it.
* Theme code refactoringSeleckyErik2019-10-231-64/+8
| | | | | | - Move GDScript-exposed function definitions from header to source file - Add null check to functions taking list pointers as parameters - Call clear() in copy_theme() if null is passed
* Remove redundant author doc commentsIAmActuallyCthulhu2019-08-121-3/+0
|
* Add some code changes/fixes proposed by Coverity and Clang Tidyqarmin2019-08-071-1/+1
|
* Keep track of default theme and project custom default theme seperatellyBojidar Marinov2019-07-051-1/+5
| | | | Fixes #30288
* Added copy_theme and fixed bugs in copy theme introduced by #2e0a94eFabian2019-01-251-0/+1
|
* Update copyright statements to 2019Rémi Verschelde2019-01-011-2/+2
| | | | Happy new year to the wonderful Godot community!
* Get rid of ancient .theme format for Theme resource. It was not working and ↵Juan Linietsky2018-11-271-8/+0
| | | | can be done the same using .tres format. Closes #19038
* Changed theme notifications to work with newly introduced reference counted ↵Juan Linietsky2018-11-271-6/+1
| | | | | | connections. Closes #21265, Fixes #6145. Probably fixes more theme notification related open issues, should check.
* Make core/ includes absolute, remove subfolders from include pathRémi Verschelde2018-09-121-2/+2
| | | | | | This allows more consistency in the manner we include core headers, where previously there would be a mix of absolute, relative and include path-dependent includes.
* -Fixes to how hashing happened, now StringName and NodePath use default ↵Juan Linietsky2018-07-021-6/+6
| | | | | | hasher, this was leading to some severe slowdown in scenarios -Fixes to some duplication scenarios for instanced scenes