From 22d56889bbed5616d40d4a1391750b94ec500b9e Mon Sep 17 00:00:00 2001 From: Sergey Starosek Date: Sat, 28 Jun 2014 12:14:36 +0400 Subject: 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 Signed-off-by: Dirk Hohndel --- icons/subsurface/32x32/actions/go-down.png | Bin 0 -> 649 bytes icons/subsurface/32x32/actions/go-up.png | Bin 0 -> 622 bytes icons/subsurface/32x32/actions/window-close.png | Bin 0 -> 338 bytes icons/subsurface/index.theme | 7 +++++++ 4 files changed, 7 insertions(+) create mode 100644 icons/subsurface/32x32/actions/go-down.png create mode 100644 icons/subsurface/32x32/actions/go-up.png create mode 100644 icons/subsurface/32x32/actions/window-close.png create mode 100644 icons/subsurface/index.theme (limited to 'icons') diff --git a/icons/subsurface/32x32/actions/go-down.png b/icons/subsurface/32x32/actions/go-down.png new file mode 100644 index 000000000..0d08df9cb Binary files /dev/null and b/icons/subsurface/32x32/actions/go-down.png differ diff --git a/icons/subsurface/32x32/actions/go-up.png b/icons/subsurface/32x32/actions/go-up.png new file mode 100644 index 000000000..397511707 Binary files /dev/null and b/icons/subsurface/32x32/actions/go-up.png differ diff --git a/icons/subsurface/32x32/actions/window-close.png b/icons/subsurface/32x32/actions/window-close.png new file mode 100644 index 000000000..2d02aaf3e Binary files /dev/null and b/icons/subsurface/32x32/actions/window-close.png differ 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 -- cgit v1.2.3-70-g09d2