Skip to content

Commit

Permalink
7.8.0 - Fixed digit selection in session settings time for touch scre…
Browse files Browse the repository at this point in the history
…en devices with bigger screen resolutions
  • Loading branch information
dliedke committed Aug 25, 2024
1 parent e0fdebf commit b8e3b17
Show file tree
Hide file tree
Showing 7 changed files with 18 additions and 8 deletions.
2 changes: 1 addition & 1 deletion Meditate/manifest.xml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<?xml version="1.0"?>
<!-- This is a generated file. It is highly recommended that you DO NOT edit this file. -->
<iq:manifest xmlns:iq="http://www.garmin.com/xml/connectiq" version="3">
<iq:application entry="MeditateApp" id="9abb375dcf7c4ace87ff66f4f774f6c8" launcherIcon="@Drawables.launcherIcon" minSdkVersion="3.0.0" name="@Strings.AppName" type="watch-app" version="7.7.0">
<iq:application entry="MeditateApp" id="9abb375dcf7c4ace87ff66f4f774f6c8" launcherIcon="@Drawables.launcherIcon" minSdkVersion="3.0.0" name="@Strings.AppName" type="watch-app" version="7.8.0">
<iq:products>
<iq:product id="approachs62"/>
<iq:product id="approachs7042mm"/>
Expand Down
2 changes: 1 addition & 1 deletion Meditate/resources-deu/strings/strings.xml
Original file line number Diff line number Diff line change
Expand Up @@ -159,7 +159,7 @@
<string id="HRVready">HRV Bereit</string>
<string id="HRVoff">HRV aus</string>

<string id="about_AppVersion">Meditate 7.7.0</string>
<string id="about_AppVersion">Meditate 7.8.0</string>
<string id="about_vtrifonov"> vtrifonov</string>
<string id="about_dliedke"> dliedke</string>

Expand Down
2 changes: 1 addition & 1 deletion Meditate/resources-por/strings/strings.xml
Original file line number Diff line number Diff line change
Expand Up @@ -160,7 +160,7 @@
<string id="HRVready">VFC Pronto</string>
<string id="HRVoff">VFC Deslig.</string>

<string id="about_AppVersion">Meditate 7.7.0</string>
<string id="about_AppVersion">Meditate 7.8.0</string>
<string id="about_vtrifonov"> vtrifonov</string>
<string id="about_dliedke"> dliedke</string>

Expand Down
2 changes: 1 addition & 1 deletion Meditate/resources-spa/strings/strings.xml
Original file line number Diff line number Diff line change
Expand Up @@ -159,7 +159,7 @@
<string id="HRVready">HRV Listo</string>
<string id="HRVoff">HRV apagado</string>

<string id="about_AppVersion">Meditate 7.7.0</string>
<string id="about_AppVersion">Meditate 7.8.0</string>
<string id="about_vtrifonov"> vtrifonov</string>
<string id="about_dliedke"> dliedke</string>

Expand Down
2 changes: 1 addition & 1 deletion Meditate/resources/strings/strings.xml
Original file line number Diff line number Diff line change
Expand Up @@ -159,7 +159,7 @@
<string id="HRVready">HRV Ready</string>
<string id="HRVoff">HRV off</string>

<string id="about_AppVersion">Meditate 7.7.0</string>
<string id="about_AppVersion">Meditate 7.8.0</string>
<string id="about_vtrifonov"> vtrifonov</string>
<string id="about_dliedke"> dliedke</string>

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,12 @@ class DigitButton extends Ui.Button {
me.mX = x;
me.mY = y;
me.mFontDigits = fontDigits;
me.mSize = 40;

// Get the device's screen size
var screenSize = System.getDeviceSettings().screenWidth;

// Set mSize based on screen size
me.mSize = (screenSize > 260) ? 80 : 40;

var options = {
:stateDefault => Gfx.COLOR_TRANSPARENT,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,13 @@ class DigitsLayout {

me.digitsLayout = new[DigitsInputCount + digitsOutputLayout.size() + 1];
me.mFontDigits = Ui.loadResource(Rez.Fonts.fontDigits);

var digitSize = 40;

// Get the device's screen size
var screenSize = System.getDeviceSettings().screenWidth;

// Set digitSize based on screen size
var digitSize = (screenSize > 260) ? 60 : 40;

var digitCirclePos = new DigitCirclePosition(dcWidth, dcHeight, digitSize);

for (var digit = 0; digit < DigitsInputCount; digit++) {
Expand Down

0 comments on commit b8e3b17

Please sign in to comment.