Kaydet (Commit) 16613995 authored tarafından Issa Alkurtass's avatar Issa Alkurtass

Enable Sifr theme

Change-Id: I3adcc90fe7621c11e77b05d4394b8d55ad223469
üst ff318ccb
......@@ -1249,7 +1249,7 @@ AC_ARG_WITH(galleries,
AC_ARG_WITH(theme,
AS_HELP_STRING([--with-theme="theme1 theme2..."],
[Choose which themes to include. By default those themes with an '*' are included.
Possible choices: *crystal, *default (galaxy), *hicontrast, human, industrial, *oxygen, *tango, *tango_testing.]),
Possible choices: *crystal, *default (galaxy), *hicontrast, human, industrial, *oxygen, *sifr, *tango, *tango_testing.]),
,)
AC_ARG_WITH(helppack-integration,
......@@ -10695,7 +10695,7 @@ dnl ===================================================================
AC_MSG_CHECKING([which themes to include])
# if none given use default subset of available themes
if test "x$with_theme" = "x" -o "x$with_theme" = "xyes"; then
with_theme="crystal default hicontrast oxygen tango"
with_theme="crystal default hicontrast oxygen tango sifr"
test "$ENABLE_RELEASE_BUILD" = "FALSE" && with_theme="$with_theme tango_testing"
fi
......@@ -10703,7 +10703,7 @@ WITH_THEMES=""
if test "x$with_theme" != "xno"; then
for theme in $with_theme; do
case $theme in
crystal|default|galaxy|hicontrast|human|industrial|oxygen|tango|tango_testing) : ;;
crystal|default|galaxy|hicontrast|human|industrial|oxygen|sifr|tango|tango_testing) : ;;
*) AC_MSG_ERROR([Unknown value for --with-theme: $theme]) ;;
esac
WITH_THEMES="$WITH_THEMES $theme"
......@@ -11869,7 +11869,7 @@ if test "$enable_mpl_subset" = "yes"; then
fi
for theme in $WITH_THEMES; do
case $theme in
crystal|default|hicontrast|human|oxygen)
crystal|default|hicontrast|human|oxygen|sifr)
AC_MSG_ERROR([need to disable icon themes from '$WITH_THEMES': $theme present, use --with-theme=tango]) ;;
*) : ;;
esac
......
......@@ -119,6 +119,7 @@
<item translatable="yes">Oxygen</item>
<item translatable="yes">Classic</item>
<item translatable="yes">Human</item>
<item translatable="yes">Sifr</item>
<item translatable="yes">Tango Testing</item>
</items>
</object>
......
......@@ -28,7 +28,7 @@ How to add a new image set:
scp2 compilation crashes when using a dash '-'.
It evidently splits the name into two strings.
- Add its name (new_set) to WITH_THEMES variable in configure.in
- Add its name (new_set) to WITH_THEMES variable in configure.ac
- Add its gid to the Files section of gid_Module_Root_Brand in
scp2/source/ooo/module_hidden_ooo.scp and add a corresponding File entry
......
......@@ -418,8 +418,9 @@ private:
#define STYLE_SYMBOLS_OXYGEN ((sal_uLong)6)
#define STYLE_SYMBOLS_CLASSIC ((sal_uLong)7)
#define STYLE_SYMBOLS_HUMAN ((sal_uLong)8)
#define STYLE_SYMBOLS_TANGO_TESTING ((sal_uLong)9)
#define STYLE_SYMBOLS_THEMES_MAX ((sal_uLong)10)
#define STYLE_SYMBOLS_SIFR ((sal_uLong)9)
#define STYLE_SYMBOLS_TANGO_TESTING ((sal_uLong)10)
#define STYLE_SYMBOLS_THEMES_MAX ((sal_uLong)11)
#define STYLE_MENUIMAGES_OFF ((sal_uInt16)0)
#define STYLE_MENUIMAGES_ON ((sal_uInt16)1)
......
......@@ -5617,6 +5617,11 @@
<desc>Tango Testing - used for testing by the design team</desc>
</info>
</enumeration>
<enumeration oor:value="sifr">
<info>
<desc>Sifr - an adaptation of the Gnome symbolic theme</desc>
</info>
</enumeration>
</constraints>
<value>auto</value>
</prop>
......
......@@ -845,6 +845,15 @@ File gid_File_ImagesTangoTesting_Zip
End
#endif
#ifdef THEME_SIFR
File gid_File_ImagesSifr_Zip
TXT_FILE_BODY;
Dir = gid_Brand_Dir_Share_Config;
Name = "images_sifr.zip";
Styles = (PACKED);
End
#endif
#ifdef THEME_HUMAN
File gid_File_ImagesHuman_Zip
TXT_FILE_BODY;
......
......@@ -400,6 +400,9 @@ Module gid_Module_Root_Files_Images
#ifdef THEME_HUMAN
gid_File_ImagesHuman_Zip,
#endif
#ifdef THEME_SIFR
gid_File_ImagesSifr_Zip
#endif
#ifdef THEME_TANGO
gid_File_ImagesTango_Zip
#endif
......
......@@ -547,6 +547,7 @@ OUString StyleSettings::ImplSymbolsStyleToName( sal_uLong nStyle ) const
case STYLE_SYMBOLS_OXYGEN: return OUString("oxygen");
case STYLE_SYMBOLS_CLASSIC: return OUString("classic");
case STYLE_SYMBOLS_HUMAN: return OUString("human");
case STYLE_SYMBOLS_SIFR: return OUString("sifr");
case STYLE_SYMBOLS_TANGO_TESTING: return OUString("tango_testing");
}
......@@ -573,6 +574,8 @@ sal_uLong StyleSettings::ImplNameToSymbolsStyle( const OUString &rName ) const
return STYLE_SYMBOLS_CLASSIC;
else if ( rName == OUString("human") )
return STYLE_SYMBOLS_HUMAN;
else if ( rName == OUString("sifr") )
return STYLE_SYMBOLS_SIFR;
else if ( rName == OUString("tango_testing") )
return STYLE_SYMBOLS_TANGO_TESTING;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment