summaryrefslogtreecommitdiff
path: root/vcl/source
diff options
context:
space:
mode:
authorYousuf Philips <philipz85@hotmail.com>2017-06-05 17:35:16 +0400
committerYousuf Philips <philipz85@hotmail.com>2017-06-06 04:26:33 +0200
commit59c0682c46e52aa18bdbee4c14ef05af9329de33 (patch)
tree9c8db460a84c03ee3023b6b7fb32f8b62a1636c8 /vcl/source
parent200a566cf106fc724b99c373f16da0058163b28d (diff)
tdf#94632 Enable sifr dark and set fallback
Change-Id: If77b33acf4f8d3e2e9c38b3e5ef359a1fc966910 Reviewed-on: https://gerrit.libreoffice.org/38387 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Yousuf Philips <philipz85@hotmail.com>
Diffstat (limited to 'vcl/source')
-rw-r--r--vcl/source/app/IconThemeInfo.cxx5
-rw-r--r--vcl/source/image/ImplImageTree.cxx2
2 files changed, 7 insertions, 0 deletions
diff --git a/vcl/source/app/IconThemeInfo.cxx b/vcl/source/app/IconThemeInfo.cxx
index 88171e985bc3..6abae73f4826 100644
--- a/vcl/source/app/IconThemeInfo.cxx
+++ b/vcl/source/app/IconThemeInfo.cxx
@@ -25,6 +25,8 @@ static const OUStringLiteral TANGO_TESTING_ID("tango_testing");
static const OUStringLiteral TANGO_TESTING_DISPLAY_NAME("Tango Testing");
static const OUStringLiteral BREEZE_DARK_ID("breeze_dark");
static const OUStringLiteral BREEZE_DARK_DISPLAY_NAME("Breeze Dark");
+static const OUStringLiteral SIFR_DARK_ID("sifr_dark");
+static const OUStringLiteral SIFR_DARK_DISPLAY_NAME("Sifr Dark");
OUString
filename_from_url(const OUString& url)
@@ -132,6 +134,9 @@ IconThemeInfo::ThemeIdToDisplayName(const OUString& themeId)
else if (themeId.equalsIgnoreAsciiCase(BREEZE_DARK_ID)) {
return BREEZE_DARK_DISPLAY_NAME;
}
+ else if (themeId.equalsIgnoreAsciiCase(SIFR_DARK_ID)) {
+ return SIFR_DARK_DISPLAY_NAME;
+ }
// make the first letter uppercase
OUString r;
diff --git a/vcl/source/image/ImplImageTree.cxx b/vcl/source/image/ImplImageTree.cxx
index 576d6c0c0d28..dd9b196c4d05 100644
--- a/vcl/source/image/ImplImageTree.cxx
+++ b/vcl/source/image/ImplImageTree.cxx
@@ -264,6 +264,8 @@ OUString ImplImageTree::fallbackStyle(const OUString& rsStyle)
sResult = "galaxy";
else if (rsStyle == "sifr" || rsStyle == "breeze_dark")
sResult = "breeze";
+ else if (rsStyle == "sifr_dark" )
+ sResult = "breeze_dark";
else if (rsStyle == "helpimg")
sResult = "";
else