summaryrefslogtreecommitdiffstats
path: root/scene/theme/default_theme.h
diff options
context:
space:
mode:
authorYuri Sizov <yuris@humnom.net>2023-08-28 00:23:38 +0200
committerYuri Sizov <yuris@humnom.net>2023-08-28 00:23:38 +0200
commitfd2ec47ec91e5dc96b0854958b5b75dad2aaf48b (patch)
tree4257975772f55da2a55db4aac01dfefb5421afd0 /scene/theme/default_theme.h
parent6da4ad16624484398331f393b503f8b5e2888c51 (diff)
downloadredot-engine-fd2ec47ec91e5dc96b0854958b5b75dad2aaf48b.tar.gz
Move default theme files to scene/theme
This also puts the default theme icons into their own folder.
Diffstat (limited to 'scene/theme/default_theme.h')
-rw-r--r--scene/theme/default_theme.h39
1 files changed, 39 insertions, 0 deletions
diff --git a/scene/theme/default_theme.h b/scene/theme/default_theme.h
new file mode 100644
index 0000000000..55fc32a3d3
--- /dev/null
+++ b/scene/theme/default_theme.h
@@ -0,0 +1,39 @@
+/**************************************************************************/
+/* default_theme.h */
+/**************************************************************************/
+/* This file is part of: */
+/* GODOT ENGINE */
+/* https://godotengine.org */
+/**************************************************************************/
+/* Copyright (c) 2014-present Godot Engine contributors (see AUTHORS.md). */
+/* Copyright (c) 2007-2014 Juan Linietsky, Ariel Manzur. */
+/* */
+/* Permission is hereby granted, free of charge, to any person obtaining */
+/* a copy of this software and associated documentation files (the */
+/* "Software"), to deal in the Software without restriction, including */
+/* without limitation the rights to use, copy, modify, merge, publish, */
+/* distribute, sublicense, and/or sell copies of the Software, and to */
+/* permit persons to whom the Software is furnished to do so, subject to */
+/* the following conditions: */
+/* */
+/* The above copyright notice and this permission notice shall be */
+/* included in all copies or substantial portions of the Software. */
+/* */
+/* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, */
+/* EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF */
+/* MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. */
+/* IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY */
+/* CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, */
+/* TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE */
+/* SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. */
+/**************************************************************************/
+
+#ifndef DEFAULT_THEME_H
+#define DEFAULT_THEME_H
+
+#include "scene/resources/theme.h"
+
+void fill_default_theme(Ref<Theme> &theme, const Ref<Font> &default_font, const Ref<Font> &bold_font, const Ref<Font> &bold_italics_font, const Ref<Font> &italics_font, Ref<Texture2D> &default_icon, Ref<StyleBox> &default_style, float p_scale);
+void make_default_theme(float p_scale, Ref<Font> p_font, TextServer::SubpixelPositioning p_font_subpixel = TextServer::SUBPIXEL_POSITIONING_AUTO, TextServer::Hinting p_font_hinting = TextServer::HINTING_LIGHT, TextServer::FontAntialiasing p_font_antialiased = TextServer::FONT_ANTIALIASING_GRAY, bool p_font_msdf = false, bool p_font_generate_mipmaps = false);
+
+#endif // DEFAULT_THEME_H