diff options
author | Sergey Starosek <sergey.starosek@gmail.com> | 2014-06-28 12:14:36 +0400 |
---|---|---|
committer | Dirk Hohndel <dirk@hohndel.org> | 2014-06-28 06:29:20 -0700 |
commit | 22d56889bbed5616d40d4a1391750b94ec500b9e (patch) | |
tree | 2e4bbc5ab3fb338e970fc3c71af5f0dbf88409f8 /icons/subsurface | |
parent | c84b40664de756b103e3304fb015edc05049ae39 (diff) | |
download | subsurface-22d56889bbed5616d40d4a1391750b94ec500b9e.tar.gz |
Fallback to loading theme icons from resources
Since not all platforms support theme icons, we need to pack
them into resources and fallback to that resource theme.
There seems to be a bug in Qt
(https://bugreports.qt-project.org/browse/QTBUG-16697), thus
default theme name (hicolor) does not work. So we test for
'window-close' theme icon on startup and if not found, set theme
name to 'subsurface'
Signed-off-by: Sergey Starosek <sergey.starosek@gmail.com>
Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
Diffstat (limited to 'icons/subsurface')
-rw-r--r-- | icons/subsurface/32x32/actions/go-down.png | bin | 0 -> 649 bytes | |||
-rw-r--r-- | icons/subsurface/32x32/actions/go-up.png | bin | 0 -> 622 bytes | |||
-rw-r--r-- | icons/subsurface/32x32/actions/window-close.png | bin | 0 -> 338 bytes | |||
-rw-r--r-- | icons/subsurface/index.theme | 7 |
4 files changed, 7 insertions, 0 deletions
diff --git a/icons/subsurface/32x32/actions/go-down.png b/icons/subsurface/32x32/actions/go-down.png Binary files differnew file mode 100644 index 000000000..0d08df9cb --- /dev/null +++ b/icons/subsurface/32x32/actions/go-down.png diff --git a/icons/subsurface/32x32/actions/go-up.png b/icons/subsurface/32x32/actions/go-up.png Binary files differnew file mode 100644 index 000000000..397511707 --- /dev/null +++ b/icons/subsurface/32x32/actions/go-up.png diff --git a/icons/subsurface/32x32/actions/window-close.png b/icons/subsurface/32x32/actions/window-close.png Binary files differnew file mode 100644 index 000000000..2d02aaf3e --- /dev/null +++ b/icons/subsurface/32x32/actions/window-close.png diff --git a/icons/subsurface/index.theme b/icons/subsurface/index.theme new file mode 100644 index 000000000..e7835db51 --- /dev/null +++ b/icons/subsurface/index.theme @@ -0,0 +1,7 @@ +[Icon Theme] +Name=Subsurface +Comment=Subsurface fallback theme +Directories=32x32/actions + +[32x32/actions] +Size=32 |