From 7d23044a4567fbf60f93e07d0eece17b23a76d2d Mon Sep 17 00:00:00 2001 From: Arjan Schrijver Date: Sun, 11 Jul 2021 20:51:44 +0200 Subject: [PATCH] Fossil Hybrid HR: Show widget previews in watchface designer --- .../assets/fossil_hr/widgetDate_preview.png | Bin 0 -> 11229 bytes .../assets/fossil_hr/widgetWeather_preview.png | Bin 0 -> 10353 bytes .../HybridHRWatchfaceDesignerActivity.java | 10 +++++++--- .../qhybrid/HybridHRWatchfaceWidget.java | 10 ++++++++++ 4 files changed, 17 insertions(+), 3 deletions(-) create mode 100644 app/src/main/assets/fossil_hr/widgetDate_preview.png create mode 100644 app/src/main/assets/fossil_hr/widgetWeather_preview.png diff --git a/app/src/main/assets/fossil_hr/widgetDate_preview.png b/app/src/main/assets/fossil_hr/widgetDate_preview.png new file mode 100644 index 0000000000000000000000000000000000000000..26b7a8f1eb7bda879456374a04faebe97adaad3e GIT binary patch literal 11229 zcmeHsWmKD6(>7AvwG;|PiW4ko(Be|up-4yq1ec%%3KXY>qQ#x!?pCZ6D_Y#G6e$ix z3iM5T&U2pgtndBvto6PBPO|RgzW2;rGjr|Pdu3-LG}RReaH(-oP*4bzmE^RM-{QY6 zY)s@Q=w{9p1?2&WkFFs?8|+E%?CN9%w};Uqyq#h6FfX_j3X0eKQkqGUNn@PcPrgXH z?k*ZC!c4n!e4op9bc;k4Qs#x38L0}_SOM>Fbf|)Y0tKp)VGGEWLzfpHTOI zKa?t36ZF3V(_f^fSmn>03TpZhY%bk)zQ?rjG}0(xeqkzOesOhvYlnIFif+-%^n1%? z-%p|kd&B*HZEiy*KaaM3o5+r?Yd;E`LFvjH58f~N9%U+il}ZYJvOKqQ#m{+~XCP@l zXWsVnrH*gQA-X|p0NThb#H<#SQI*V0LdhX#F8zY zhhUi*G$Ja86j`S3JumH}VlL|!VCJ`H7)}I>d)_mCBfXhFrrlb>c*2=UoEb3QA>s7# zo);SzZ_)Pw{U$#WG)(w-3bQS!Ptxg{al>YB1M|G_Z;p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KRKSATMLP2>OJ^=B^r4@ba2|96o8h~NLx^<^NXKf9d*<82FEr z|65)E-{>O#_l5`Nj``#B-L>rztqp!u^ zHj!hfJoQ-ZL8#hC3j>1_P3qZHZ$CnI-bWNSW5jqju@#~t&&E{M4We(WKPmNA=Idm! z#0eW2$Te6ey(H+9@jqxB9g*_Sdo^Rdp=JI1^1`FGC()wkg^YEQp#hfG!=Gu)`(0{N zKv;1A+4XKPgeHZXYp)Tpq}hT+kJrTY!UcEuB~}YlMcwg-Zkh+A=Oi5j;LtYL+$X+R zsr}P89-t(9Ot6jcQH&pPsR0(D7AC*&D&EsBk%zTOp=`04#_aZ(O=fU&aaEKbSrQ1= zAJ5=7C?xD@xCA?{8495A@S14P0Z+^?aD8WvNMBlX_uv@^zAAi-p&-{lxv9CI5 z&e}A-Cr3r$JxQFq>aA`%*q1mC;uOXoYen}bS8xNhM;yeWyOSFmMX1c**W0KSgnAV+ zzb3=>?2i}tRc|BM=qThF$4uRgra0?M-2Iq^-9R!S-+`aWCJ&}7$!e4BX#!?F5{LW! zb(PYC*DVybxeuw%VU@W-g+hycqJ^Z=q~7WSb5@YfXM`> zWJ7hj_yJ_}0B1omIb3gHi9>@zI;Y0+@CYRdPf6ku8I3LlowcTH9xhybL z)Ta;gN2~i}tAwbU@Y;h$!W2@9FB9c!KAq{M{6u&!uE*rTy$x{NA3vv}26Mhh@ z>2%6&#$D;mvK{8+6P1a&lJXP{F6L2cl(oyZ84EU%dl}ZG5fg+K+*>sc#|8v>$jPjh zlE_KicEbr($i0*^*^NjsiAcgyxP5_^b6xVQ)HljT(&`_H-<833$eMU2i~IG7>l#zO zlbt0YYh($bUg*#|pA;6Cv$dC!8U!ot)b-SAR31F~9|twMmH+?% literal 0 HcmV?d00001 diff --git a/app/src/main/java/nodomain/freeyourgadget/gadgetbridge/devices/qhybrid/HybridHRWatchfaceDesignerActivity.java b/app/src/main/java/nodomain/freeyourgadget/gadgetbridge/devices/qhybrid/HybridHRWatchfaceDesignerActivity.java index da396868c..ebb7360ad 100644 --- a/app/src/main/java/nodomain/freeyourgadget/gadgetbridge/devices/qhybrid/HybridHRWatchfaceDesignerActivity.java +++ b/app/src/main/java/nodomain/freeyourgadget/gadgetbridge/devices/qhybrid/HybridHRWatchfaceDesignerActivity.java @@ -293,8 +293,8 @@ public class HybridHRWatchfaceDesignerActivity extends AbstractGBActivity implem widgetPaint.setColor(Color.RED); widgetPaint.setStyle(Paint.Style.STROKE); widgetPaint.setStrokeWidth(5); - Bitmap widgetBitmap = Bitmap.createBitmap((int)(widgetSize * scaleFactor), (int)(widgetSize * scaleFactor), Bitmap.Config.ARGB_8888); - Canvas widgetCanvas = new Canvas(widgetBitmap); + Bitmap widgetNoPreviewBitmap = Bitmap.createBitmap((int)(widgetSize * scaleFactor), (int)(widgetSize * scaleFactor), Bitmap.Config.ARGB_8888); + Canvas widgetCanvas = new Canvas(widgetNoPreviewBitmap); widgetCanvas.drawRect(0, 0, widgetSize * scaleFactor, widgetSize * scaleFactor, widgetPaint); for (int i=0; i. */ package nodomain.freeyourgadget.gadgetbridge.devices.qhybrid; +import android.content.Context; +import android.graphics.Bitmap; +import android.graphics.BitmapFactory; + +import java.io.IOException; + public class HybridHRWatchfaceWidget { private String widgetType; private int posX; @@ -31,6 +37,10 @@ public class HybridHRWatchfaceWidget { return widgetType; } + public Bitmap getPreviewImage(Context context) throws IOException { + return BitmapFactory.decodeStream(context.getAssets().open("fossil_hr/" + widgetType + "_preview.png")); + } + public int getPosX() { return posX; }