Skip to content

Commit

Permalink
Fix #22 support of *.svg based unity themes
Browse files Browse the repository at this point in the history
  • Loading branch information
takinoy committed Jun 15, 2015
1 parent a5fc369 commit f4e98ee
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions common/theme.c
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,8 @@

#include "theme.h"

#define UNITY_TEST_FILE "close_focused_normal.png"
#define UNITY_TEST_FILE_PNG "close_focused_normal.png"
#define UNITY_TEST_FILE_SVG "close_focused_normal.svg"


gchar *test_theme_dir (const gchar *theme, const char *themedir, const gchar *file) {
Expand Down Expand Up @@ -66,7 +67,10 @@ get_unity_theme_dir (const gchar *theme, const gchar *default_theme)
}
}

abs_path = test_theme_dir (theme, "unity", UNITY_TEST_FILE);
abs_path = test_theme_dir (theme, "unity", UNITY_TEST_FILE_PNG);

if (!abs_path)
abs_path = test_theme_dir (theme, "unity", UNITY_TEST_FILE_SVG);

if (abs_path)
return abs_path;
Expand Down

0 comments on commit f4e98ee

Please sign in to comment.