summarylogtreecommitdiffstats
path: root/adjust-resources-path.patch
blob: 2866abf17730a5e0a5a4dbdebb7b119a067021a3 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
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..4d607b0 100644
--- a/widget/src/widgetstyle.rs
+++ b/widget/src/widgetstyle.rs
@@ -4,7 +4,7 @@ pub fn set_widget_style(cx: &mut Cx) {
     
     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,
@@ -19,7 +19,7 @@ pub fn set_widget_style(cx: &mut Cx) {
         }
         
         self::text_style_fixed: TextStyle{
-            font: "resources/LiberationMono-Regular.ttf",
+            font: "%%MAKEPAD_HOME%%/resources/LiberationMono-Regular.ttf",
             brightness: 1.1,
             font_size: 8.0, 
             line_spacing: 1.8,