mirror of
https://github.com/godotengine/godot-docs-l10n.git
synced 2025-12-31 09:49:22 +03:00
125 lines
5.9 KiB
Plaintext
125 lines
5.9 KiB
Plaintext
# SOME DESCRIPTIVE TITLE.
|
||
# Copyright (C) 2014-present Juan Linietsky, Ariel Manzur and the Godot community (CC BY 3.0)
|
||
# This file is distributed under the same license as the Godot Engine package.
|
||
# FIRST AUTHOR <EMAIL@ADDRESS>, YEAR.
|
||
#
|
||
#, fuzzy
|
||
msgid ""
|
||
msgstr ""
|
||
"Project-Id-Version: Godot Engine latest\n"
|
||
"Report-Msgid-Bugs-To: \n"
|
||
"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
|
||
"Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
|
||
"Language-Team: LANGUAGE <LL@li.org>\n"
|
||
"MIME-Version: 1.0\n"
|
||
"Content-Type: text/plain; charset=UTF-8\n"
|
||
"Content-Transfer-Encoding: 8bit\n"
|
||
|
||
#: ../../docs/engine_details/editor/creating_icons.rst:4
|
||
msgid "Editor icons"
|
||
msgstr ""
|
||
|
||
#: ../../docs/engine_details/editor/creating_icons.rst:6
|
||
msgid "When a new class is created and exposed to scripting, the editor's interface will display it with a default icon representing the base class it inherits from. In most cases, it's still recommended to create icons for new classes to improve the user experience."
|
||
msgstr ""
|
||
|
||
#: ../../docs/engine_details/editor/creating_icons.rst:12
|
||
msgid "Creating icons"
|
||
msgstr ""
|
||
|
||
#: ../../docs/engine_details/editor/creating_icons.rst:14
|
||
msgid "To create new icons, you first need a vector graphics editor installed. For instance, you can use the open source `Inkscape <https://inkscape.org/>`_ editor."
|
||
msgstr ""
|
||
|
||
#: ../../docs/engine_details/editor/creating_icons.rst:17
|
||
msgid "Clone the ``godot`` repository containing all the editor icons:"
|
||
msgstr ""
|
||
|
||
#: ../../docs/engine_details/editor/creating_icons.rst:23
|
||
msgid "The icons must be created in a vector graphics editor in SVG format. There are two main requirements to follow:"
|
||
msgstr ""
|
||
|
||
#: ../../docs/engine_details/editor/creating_icons.rst:26
|
||
msgid "Icons must be 16×16. In Inkscape, you can configure the document size in **File > Document Properties**."
|
||
msgstr ""
|
||
|
||
#: ../../docs/engine_details/editor/creating_icons.rst:28
|
||
msgid "Lines should be snapped to pixels whenever possible to remain crisp at lower DPI. You can create a 16×16 grid in Inkscape to make this easier."
|
||
msgstr ""
|
||
|
||
#: ../../docs/engine_details/editor/creating_icons.rst:31
|
||
msgid "Once you're satisfied with the icon's design, save the icon in the cloned repository's ``editor/icons`` folder. The icon name should match the intended name in a case-sensitive manner. For example, to create an icon for CPUParticles2D, name the file ``CPUParticles2D.svg``."
|
||
msgstr ""
|
||
|
||
#: ../../docs/engine_details/editor/creating_icons.rst:37
|
||
msgid "Color conversion for light editor themes"
|
||
msgstr ""
|
||
|
||
#: ../../docs/engine_details/editor/creating_icons.rst:39
|
||
msgid "If the user has configured their editor to use a light theme, Godot will convert the icon's colors based on a `set of predefined color mappings <https://github.com/godotengine/godot/blob/master/editor/themes/editor_color_map.cpp>`__. This is to ensure the icon always displays with a sufficient contrast rate. Try to restrict your icon's color palette to colors found in the list above. Otherwise, your icon may become difficult to read on a light background."
|
||
msgstr ""
|
||
|
||
#: ../../docs/engine_details/editor/creating_icons.rst:47
|
||
msgid "To enable color conversion for light editor themes:"
|
||
msgstr ""
|
||
|
||
#: ../../docs/engine_details/editor/creating_icons.rst:48
|
||
msgid ":ui:`Import > Import As > Texture2D`"
|
||
msgstr ""
|
||
|
||
#: ../../docs/engine_details/editor/creating_icons.rst:49
|
||
msgid "Set ``editor/convert_colors_with_editor_theme`` to ``true``"
|
||
msgstr ""
|
||
|
||
#: ../../docs/engine_details/editor/creating_icons.rst:52
|
||
msgid "Icon optimization"
|
||
msgstr ""
|
||
|
||
#: ../../docs/engine_details/editor/creating_icons.rst:54
|
||
msgid "Because the editor renders SVGs once at load time, they need to be small in size so they can be efficiently parsed. When the `pre-commit hook <https://contributing.godotengine.org/en/latest/engine/guidelines/code_style.html#pre-commit-hook>`__ runs, it automatically optimizes the SVG using `svgo <https://github.com/svg/svgo>`_."
|
||
msgstr ""
|
||
|
||
#: ../../docs/engine_details/editor/creating_icons.rst:61
|
||
msgid "While this optimization step won't impact the icon's quality noticeably, it will still remove editor-only information such as guides. Therefore, it's recommended to keep the source SVG around if you need to make further changes."
|
||
msgstr ""
|
||
|
||
#: ../../docs/engine_details/editor/creating_icons.rst:67
|
||
msgid "Integrating and sharing the icons"
|
||
msgstr ""
|
||
|
||
#: ../../docs/engine_details/editor/creating_icons.rst:69
|
||
msgid "If you're contributing to the engine itself, you should make a pull request to add optimized icons to ``editor/icons`` in the main repository. Recompile the engine to make it pick up new icons for classes."
|
||
msgstr ""
|
||
|
||
#: ../../docs/engine_details/editor/creating_icons.rst:73
|
||
msgid "It's also possible to create custom icons within a module. If you're creating your own module and don't plan to integrate it with Godot, you don't need to make a separate pull request for your icons to be available within the editor as they can be self-contained."
|
||
msgstr ""
|
||
|
||
#: ../../docs/engine_details/editor/creating_icons.rst:78
|
||
msgid "For specific instructions on how to create module icons, refer to :ref:`Creating custom module icons<doc_custom_module_icons>`."
|
||
msgstr ""
|
||
|
||
#: ../../docs/engine_details/editor/creating_icons.rst:82
|
||
msgid "Troubleshooting"
|
||
msgstr ""
|
||
|
||
#: ../../docs/engine_details/editor/creating_icons.rst:84
|
||
msgid "If icons don't appear in the editor, make sure that:"
|
||
msgstr ""
|
||
|
||
#: ../../docs/engine_details/editor/creating_icons.rst:86
|
||
msgid "Each icon's filename matches the naming requirement as described previously."
|
||
msgstr ""
|
||
|
||
#: ../../docs/engine_details/editor/creating_icons.rst:88
|
||
msgid "``modules/svg`` is enabled (it should be enabled by default). Without it, icons won't appear in the editor at all."
|
||
msgstr ""
|
||
|
||
#: ../../docs/engine_details/editor/creating_icons.rst:92
|
||
msgid "References"
|
||
msgstr ""
|
||
|
||
#: ../../docs/engine_details/editor/creating_icons.rst:94
|
||
msgid "`editor/icons <https://github.com/godotengine/godot/tree/master/editor/icons>`__"
|
||
msgstr ""
|