diff options
author | Teoh Han Hui | 2020-06-20 10:58:50 +0200 |
---|---|---|
committer | Teoh Han Hui | 2020-06-20 12:11:19 +0200 |
commit | ec794b205065b74f95971f3c19c376d79f3109fa (patch) | |
tree | 6af018526ac16dfd77b400417d7b7bcbc446570c /adjust-resources-path.patch | |
download | aur-ec794b205065b74f95971f3c19c376d79f3109fa.tar.gz |
Initial commit
Diffstat (limited to 'adjust-resources-path.patch')
-rw-r--r-- | adjust-resources-path.patch | 22 |
1 files changed, 22 insertions, 0 deletions
diff --git a/adjust-resources-path.patch b/adjust-resources-path.patch new file mode 100644 index 000000000000..caee4046da63 --- /dev/null +++ b/adjust-resources-path.patch @@ -0,0 +1,22 @@ +diff --git a/widget/src/widgetstyle.rs b/widget/src/widgetstyle.rs +index 5dd6235..083b204 100644 +--- a/widget/src/widgetstyle.rs ++++ b/widget/src/widgetstyle.rs +@@ -141,7 +141,7 @@ pub fn set_widget_style(cx: &mut Cx, opt: &StyleOptions) { + TextEditor::color_defocus().set(cx, color256(128, 128, 128)); + //} + +- let font = cx.load_font("resources/Ubuntu-R.ttf"); ++ let font = cx.load_font("%%USR_SHARE_PKG%%/resources/Ubuntu-R.ttf"); + Theme::text_style_unscaled().set(cx, TextStyle { + font: font, + font_size: 8.0, +@@ -157,7 +157,7 @@ pub fn set_widget_style(cx: &mut Cx, opt: &StyleOptions) { + ..Theme::text_style_unscaled().get(cx) + }); + +- let font = cx.load_font("resources/LiberationMono-Regular.ttf"); ++ let font = cx.load_font("%%USR_SHARE_PKG%%/resources/LiberationMono-Regular.ttf"); + Theme::text_style_fixed().set(cx, TextStyle { + font: font, + brightness: 1.1, |