Skip to content

Commit 2b16dc7

Browse files
authored
Volume buttons adjustment
1 parent 28659cf commit 2b16dc7

5 files changed

Lines changed: 18 additions & 19 deletions

File tree

Changelog.txt

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,8 @@
1-
1.3.3
1+
1.3.4
2+
- volume buttons react a bit less 'agressive'
23
- added Spotify music search function when spotify account is connected
3-
4-
1.3.2
54
- added support for Spotify accounts, play your spotify playlists on Sonos via Toon.
6-
Setup accounts via the Sonos menu item and select your Spotify user at the Favourites screen for playback
5+
Setup accounts via the Sonos menu item and select your Spotify user at the Favourites screen for playback
76

87
1.2.10
98
- added position indicator (time) of currently playing song on tile and main screen

MediaScreen.qml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -355,9 +355,9 @@ Screen {
355355
iconSource: "qrc:/tsc/volume_up.png"
356356
onClicked: {
357357
if (app.sonosNameIsGroup) {
358-
app.simpleSynchronous("http://"+app.connectionPath+"/"+app.sonosName+"/groupVolume/+5");
358+
app.simpleSynchronous("http://"+app.connectionPath+"/"+app.sonosName+"/groupVolume/+2");
359359
} else {
360-
app.simpleSynchronous("http://"+app.connectionPath+"/"+app.sonosName+"/volume/+5");
360+
app.simpleSynchronous("http://"+app.connectionPath+"/"+app.sonosName+"/volume/+2");
361361
}
362362
}
363363
}
@@ -375,9 +375,9 @@ Screen {
375375
iconSource: "qrc:/tsc/volume_down.png"
376376
onClicked: {
377377
if (app.sonosNameIsGroup) {
378-
app.simpleSynchronous("http://"+app.connectionPath+"/"+app.sonosName+"/groupVolume/-5");
378+
app.simpleSynchronous("http://"+app.connectionPath+"/"+app.sonosName+"/groupVolume/-2");
379379
} else {
380-
app.simpleSynchronous("http://"+app.connectionPath+"/"+app.sonosName+"/volume/-5");
380+
app.simpleSynchronous("http://"+app.connectionPath+"/"+app.sonosName+"/volume/-2");
381381
}
382382
}
383383
}

MediaSelectZoneDelegate.qml

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -82,11 +82,11 @@ Rectangle
8282
iconSource: "qrc:/tsc/volume_down_small.png"
8383
onClicked: {
8484
if (isGroup == "yes") {
85-
app.simpleSynchronous("http://"+app.connectionPath+"/"+app.sonosName+"/groupVolume/-5");
85+
app.simpleSynchronous("http://"+app.connectionPath+"/"+app.sonosName+"/groupVolume/-2");
8686
} else {
87-
app.simpleSynchronous("http://"+app.connectionPath+"/"+app.sonosName+"/volume/-5");
87+
app.simpleSynchronous("http://"+app.connectionPath+"/"+app.sonosName+"/volume/-2");
8888
}
89-
volume = volume - 5;
89+
volume = volume - 2;
9090
if (volume < 0 ) volume = 0;
9191
}
9292
visible: volume > 0
@@ -162,11 +162,11 @@ Rectangle
162162
iconSource: "qrc:/tsc/volume_up_small.png"
163163
onClicked: {
164164
if (isGroup == "yes") {
165-
app.simpleSynchronous("http://"+app.connectionPath+"/"+app.sonosName+"/groupVolume/+5");
165+
app.simpleSynchronous("http://"+app.connectionPath+"/"+app.sonosName+"/groupVolume/+2");
166166
} else {
167-
app.simpleSynchronous("http://"+app.connectionPath+"/"+app.sonosName+"/volume/+5");
167+
app.simpleSynchronous("http://"+app.connectionPath+"/"+app.sonosName+"/volume/+2");
168168
}
169-
volume = volume + 5;
169+
volume = volume + 2;
170170
if (volume > 100) volume = 100;
171171
}
172172
visible: volume < 100

SonosTile.qml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -149,9 +149,9 @@ Tile {
149149
iconSource: "qrc:/tsc/volume_down_small.png"
150150
onClicked: {
151151
if (app.sonosNameIsGroup) {
152-
app.simpleSynchronous("http://"+app.connectionPath+"/"+app.sonosName+"/groupVolume/-5");
152+
app.simpleSynchronous("http://"+app.connectionPath+"/"+app.sonosName+"/groupVolume/-2");
153153
} else {
154-
app.simpleSynchronous("http://"+app.connectionPath+"/"+app.sonosName+"/volume/-5");
154+
app.simpleSynchronous("http://"+app.connectionPath+"/"+app.sonosName+"/volume/-2");
155155
}
156156
}
157157
visible: !dimState
@@ -233,9 +233,9 @@ Tile {
233233
iconSource: "qrc:/tsc/volume_up_small.png"
234234
onClicked: {
235235
if (app.sonosNameIsGroup) {
236-
app.simpleSynchronous("http://"+app.connectionPath+"/"+app.sonosName+"/groupVolume/+5");
236+
app.simpleSynchronous("http://"+app.connectionPath+"/"+app.sonosName+"/groupVolume/+2");
237237
} else {
238-
app.simpleSynchronous("http://"+app.connectionPath+"/"+app.sonosName+"/volume/+5");
238+
app.simpleSynchronous("http://"+app.connectionPath+"/"+app.sonosName+"/volume/+2");
239239
}
240240
}
241241
visible: !dimState

version.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
1.3.3
1+
1.3.4

0 commit comments

Comments
 (0)