Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/owncloud/client.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
path: root/src/gui
diff options
context:
space:
mode:
authorHannah von Reth <hannah.vonreth@owncloud.com>2022-06-07 19:11:38 +0300
committerHannah von Reth <vonreth@kde.org>2022-06-22 16:02:13 +0300
commit44a72a011342711d7b663fc8a0f9639485d6b591 (patch)
tree90a4808bb48ef2e8fe07316d9d08a1561e358cab /src/gui
parent7323cc157110fabafb4152a0a9da542b1785a28c (diff)
Implement renderTemplate
The function alows to fill template files
Diffstat (limited to 'src/gui')
-rw-r--r--src/gui/newwizard/setupwizardwindow.cpp10
1 files changed, 4 insertions, 6 deletions
diff --git a/src/gui/newwizard/setupwizardwindow.cpp b/src/gui/newwizard/setupwizardwindow.cpp
index 68d4a941c..179665c26 100644
--- a/src/gui/newwizard/setupwizardwindow.cpp
+++ b/src/gui/newwizard/setupwizardwindow.cpp
@@ -17,12 +17,10 @@ using namespace OCC;
QString replaceCssColors(QString stylesheet)
{
- QString rv = stylesheet;
-
- rv = stylesheet.replace(QStringLiteral("@WIZARD_BACKGROUND_COLOR@"), Theme::instance()->wizardHeaderBackgroundColor().name());
- rv = stylesheet.replace(QStringLiteral("@WIZARD_FONT_COLOR@"), Theme::instance()->wizardHeaderTitleColor().name());
-
- return rv;
+ return Utility::renderTemplate(stylesheet, {
+ { QStringLiteral("WIZARD_BACKGROUND_COLOR"), Theme::instance()->wizardHeaderBackgroundColor().name() }, //
+ { QStringLiteral("WIZARD_FONT_COLOR"), Theme::instance()->wizardHeaderTitleColor().name() } //
+ });
}
}