summarylogtreecommitdiffstats
path: root/adjust-resources-path.patch
diff options
context:
space:
mode:
authorTeoh Han Hui2021-04-05 17:54:36 +0800
committerTeoh Han Hui2021-04-05 17:54:36 +0800
commitc0ef7ece70275a8f09d26a3059f98dd6b3a94d97 (patch)
treea352071e270777cbe5b037676a34c11eb6c751f6 /adjust-resources-path.patch
parent4898ed40dec535f61355a5c8671d3177954f3364 (diff)
downloadaur-makepad-git.tar.gz
Install to /opt/makepad
Diffstat (limited to 'adjust-resources-path.patch')
-rw-r--r--adjust-resources-path.patch19
1 files changed, 16 insertions, 3 deletions
diff --git a/adjust-resources-path.patch b/adjust-resources-path.patch
index 6421d719646f..2866abf17730 100644
--- a/adjust-resources-path.patch
+++ b/adjust-resources-path.patch
@@ -1,5 +1,18 @@
+diff --git a/render/src/drawtext.rs b/render/src/drawtext.rs
+index b10d855..33ff5b5 100644
+--- a/render/src/drawtext.rs
++++ b/render/src/drawtext.rs
+@@ -134,7 +134,7 @@ impl DrawText {
+
+ live_body!(cx, r#"
+ self::text_style_unscaled: TextStyle {
+- font: "resources/Ubuntu-R.ttf",
++ font: "%%MAKEPAD_HOME%%/resources/Ubuntu-R.ttf",
+ font_size: 8.0,
+ brightness: 1.0,
+ curve: 0.6,
diff --git a/widget/src/widgetstyle.rs b/widget/src/widgetstyle.rs
-index eb235fd..815845e 100644
+index eb235fd..4d607b0 100644
--- a/widget/src/widgetstyle.rs
+++ b/widget/src/widgetstyle.rs
@@ -4,7 +4,7 @@ pub fn set_widget_style(cx: &mut Cx) {
@@ -7,7 +20,7 @@ index eb235fd..815845e 100644
live_body!(cx, r#"
self::text_style_unscaled: TextStyle{
- font: "resources/Ubuntu-R.ttf",
-+ font: "%%USR_SHARE_PKG%%/resources/Ubuntu-R.ttf",
++ font: "%%MAKEPAD_HOME%%/resources/Ubuntu-R.ttf",
font_size: 8.0,
brightness: 1.0,
curve: 0.6,
@@ -16,7 +29,7 @@ index eb235fd..815845e 100644
self::text_style_fixed: TextStyle{
- font: "resources/LiberationMono-Regular.ttf",
-+ font: "%%USR_SHARE_PKG%%/resources/LiberationMono-Regular.ttf",
++ font: "%%MAKEPAD_HOME%%/resources/LiberationMono-Regular.ttf",
brightness: 1.1,
font_size: 8.0,
line_spacing: 1.8,