From 84dc9cbf0162dd60f99c3a1f9681f41a80df3040 Mon Sep 17 00:00:00 2001 From: Thomas Perl Date: Tue, 4 Feb 2014 23:21:07 +0100 Subject: [PATCH] Add seek buttons to PlayerPage --- touch/PlayerPage.qml | 24 ++++++++++++++++++++++++ touch/icons/arrow_left_32x32.png | Bin 0 -> 239 bytes touch/icons/arrow_right_32x32.png | Bin 0 -> 270 bytes touch/icons/first_32x32.png | Bin 0 -> 271 bytes touch/icons/last_32x32.png | Bin 0 -> 281 bytes 5 files changed, 24 insertions(+) create mode 100644 touch/icons/arrow_left_32x32.png create mode 100644 touch/icons/arrow_right_32x32.png create mode 100644 touch/icons/first_32x32.png create mode 100644 touch/icons/last_32x32.png diff --git a/touch/PlayerPage.qml b/touch/PlayerPage.qml index 24d6037..9aed9ae 100644 --- a/touch/PlayerPage.qml +++ b/touch/PlayerPage.qml @@ -74,6 +74,30 @@ SlidePage { } } } + + IconMenuItem { + text: '-1m' + iconSource: 'icons/first_32x32.png' + onClicked: player.seekAndSync(player.position - 60 * 1000); + } + + IconMenuItem { + text: '-10s' + iconSource: 'icons/arrow_left_32x32.png' + onClicked: player.seekAndSync(player.position - 10 * 1000); + } + + IconMenuItem { + text: '+10s' + iconSource: 'icons/arrow_right_32x32.png' + onClicked: player.seekAndSync(player.position + 10 * 1000); + } + + IconMenuItem { + text: '+1m' + iconSource: 'icons/last_32x32.png' + onClicked: player.seekAndSync(player.position + 60 * 1000); + } } PLabel { diff --git a/touch/icons/arrow_left_32x32.png b/touch/icons/arrow_left_32x32.png new file mode 100644 index 0000000000000000000000000000000000000000..9ef2fc27c972bba05cb99b8c3e721fdccfe7198d GIT binary patch literal 239 zcmeAS@N?(olHy`uVBq!ia0vp^3LwnE1|*BCs=fdz$r9IylHmNblJdl&R0hYC{G?O` z&)mfH)S%SFl*+=BsWw1G6FprVLn>}1B`660`Tswjq2oOB#~QXOW|h;43I80T{OsKy zY@GA0PvKC}Ez2gB(}@e}6?E(QkFYJC)*t1kli;#l#^Wt}QV@?0%Oh?P>jt0GnruDH znU*&gfy5cc=j^9GIX-S^>}_K7Z)sMN=1Xxj+3~6|(7nehDZtE&-F0(KK#32V>-C&~ h62FyqZP_^t7*7A#@aU3XOcc;@44$rjF6*2UngEG;RCoXY literal 0 HcmV?d00001 diff --git a/touch/icons/arrow_right_32x32.png b/touch/icons/arrow_right_32x32.png new file mode 100644 index 0000000000000000000000000000000000000000..97fad62c1d38c8bba7f95e9eca1ce5befcbfc9d2 GIT binary patch literal 270 zcmeAS@N?(olHy`uVBq!ia0vp^3LwnE1|*BCs=fdz$r9IylHmNblJdl&R0hYC{G?O` z&)mfH)S%SFl*+=BsWw1G8$4YcLn>~)nf{R1!9bvOeJ^8A5{sHiQ((^lwVZ-DX(5%S z6}!9kJ^8!B{Z_}}VYs2RF{n!Di)7sFYuhI86v&Z{%BF<2I_XgYYz R^Dxlu44$rjF6*2Ung9}WXN~{> literal 0 HcmV?d00001 diff --git a/touch/icons/first_32x32.png b/touch/icons/first_32x32.png new file mode 100644 index 0000000000000000000000000000000000000000..e84aa06055deb84d05bb78d5212f6564029a997f GIT binary patch literal 271 zcmeAS@N?(olHy`uVBq!ia0vp^3LwnE1|*BCs=fdz$r9IylHmNblJdl&R0hYC{G?O` z&)mfH)S%SFl*+=BsWw1G8$DedLn>}PnV!hipup1_YBk~R2ER)aU%6#FHaaE-UyuIc z@MZq{*?#8F9h4TGNOsG$yP(Hms@fDVpC`ag>dJb_9gD-vCoB##{m>G1w4r6!PDagA zW9Fq-Ryv*KeV$qEmF&B$MAdxG@|9(eof#c<`y8^f0$EH}boV16w*`R`kL$}?-TzzH)nPx^=~U9?H&-i$xXOpPzjiE~XBO<bP0l+XkKQkHAa literal 0 HcmV?d00001 diff --git a/touch/icons/last_32x32.png b/touch/icons/last_32x32.png new file mode 100644 index 0000000000000000000000000000000000000000..5bf194de7fc9739ddbe307e55f16c04e976778dc GIT binary patch literal 281 zcmeAS@N?(olHy`uVBq!ia0vp^3LwnE1|*BCs=fdz$r9IylHmNblJdl&R0hYC{G?O` z&)mfH)S%SFl*+=BsWw1GyFFbTLn>}vnV!hipup1_Y84>6a`p?(uWqNCI9#G$JzLEF z&$za3=T1qbuF5rRs#Q-evT-;yzxtHHoMh4=Xq`Bvt))>>Du``YriXOKvW1BYI@^{t z`kU-vy^}Cy?(E|eJvNH7NiMZ1%g)u}+*A96r8r8Q*OMt!>dvq3ptk*)EP0EJ6Asol zvNcXHzjrEQMj`vEM2pvaCUbXbhGs2)6mREt;kiWE1P5=Uh(Ipg(}}&DTTGixmtXky bM<9VAE{mH*#ZvY)&>IY%u6{1-oD!M