# Touchscreen widgets

**URL:** <https://discourse.zynthian.org/t/touchscreen-widgets/4227>\
**Category:** Development\
**Created:** [May 28, 2020, 4:24pm UTC](https://discourse.zynthian.org/t/touchscreen-widgets/4227 "2020-05-28T16:24:31Z")\
**Posts on this page:** 17\
**Page:** 2

<div class="post-metadata">

**Author:** ![steveb](https://discourse.zynthian.org/user_avatar/discourse.zynthian.org/steveb/32/336_2.png) [@steveb](https://discourse.zynthian.org/u/steveb)\
**Post date:** [June 30, 2020, 9:14pm UTC](https://discourse.zynthian.org/t/touchscreen-widgets/4227/21 "2020-06-30T21:14:47Z")

</div>

> [@riban](#):
>
> I have committed a couple of fixes to the branch to fix button height and press timer.

Thanks, the buttons take the vertical space now

> [@riban](#):
>
> The button timers could be improved to give similar behaviour to buttons, i.e. long press should trigger without letting go of button.

Agreed, this would be desirable

---

<div class="post-metadata">

**Author:** ![sailort](https://discourse.zynthian.org/letter_avatar_proxy/v4/letter/s/b19c9b/32.png) [@sailort](https://discourse.zynthian.org/u/sailort)\
**Post date:** [June 30, 2020, 9:37pm UTC](https://discourse.zynthian.org/t/touchscreen-widgets/4227/22 "2020-06-30T21:37:57Z")

</div>

Its cumbersome on my display to swipe. As I said, it’s pita to scroll past visible list items. I would be happy to have it 🙂 Could be smaller with icons. Six items will fit nicely I believe. Those cornered ones could be also smaller as hitting corner somehow will survive some finger misalligments.

---

<div class="post-metadata">

**Author:** ![riban](https://discourse.zynthian.org/user_avatar/discourse.zynthian.org/riban/32/2331_2.png) [@riban](https://discourse.zynthian.org/u/riban)\
**Post date:** [July 1, 2020, 6:37am UTC](https://discourse.zynthian.org/t/touchscreen-widgets/4227/23 "2020-07-01T06:37:53Z")

</div>

> [@steveb](#):
>
> behave like ubiq

Swipe gestures are not supported by tkinter. There was some suggestion of looking at another GUI framework that does support gestures but I am not sure that has gone anywhere. Anyway, gestures only really work on capacitive touch screens. Resistive screens tend to require even pressure which is not easy nor natural when swiping. Also, gestures become more awkward on smaller screens. I believe out core goal is to provide a consistent interface for the majority of users with minimal maintenance overhead, concentrating on the _official_ hardware but supporting other hardware where practicable. There are lots of fun things we could do with display x/y/z but I am sure poor @jofemodo doesn’t want the technical debt of a hundred _good ideas_ abandoned by good-willed contributors who’s lives have demanded they move on to other things… (I have been one of those on many projects!!! I have stuck around here for a while though.)

---

<div class="post-metadata">

**Author:** ![jofemodo](https://discourse.zynthian.org/user_avatar/discourse.zynthian.org/jofemodo/32/2_2.png) [@jofemodo](https://discourse.zynthian.org/u/jofemodo)\
**Post date:** [July 1, 2020, 5:17pm UTC](https://discourse.zynthian.org/t/touchscreen-widgets/4227/24 "2020-07-01T17:17:09Z")

</div>

I’ve re-styled a little bit the buttonbar:

![zynthian_buttonbar-2](https://discourse.zynthian.org/uploads/default/original/2X/0/09567398c42716586f2d1b1f5421c86fb09af34d.png)

Also, i’ve implemented contextual buttonbar configuration, allowing to change button’s labels for every menu/screen. For instance i used this with the “LEARN” button, so when you are on Bank/Preset screens you will see “FAVS” instead of “LEARN”.

![zynthian_buttonbar](https://discourse.zynthian.org/uploads/default/original/2X/9/91645d63187c413689ed327f3b834fe3feb64d96.png)

Regarding the more philosophical discussion, i’m not convinced at all of this “patch”, but as it’s un-intrusive, i’ve not problem with merging on master. I’m pretty sure that it will improve encoderless UX.

And of course, we could think about the possibility of configuring the buttons from the webconf if enough people find useful the feature … in fact, this is almost done by simply reassigning the 4 buttons to the extra switches (4,5,6,7) instead of the primary ones (0,1,2,3).

Regards,

---

<div class="post-metadata">

**Author:** ![jofemodo](https://discourse.zynthian.org/user_avatar/discourse.zynthian.org/jofemodo/32/2_2.png) [@jofemodo](https://discourse.zynthian.org/u/jofemodo)\
**Post date:** [July 1, 2020, 5:19pm UTC](https://discourse.zynthian.org/t/touchscreen-widgets/4227/25 "2020-07-01T17:19:41Z")

</div>

Ahhhh! BTW, i’ve fixed the touch-back area on the topbar! @wyleu, i now you will love this tiny fix …

Regards,

---

<div class="post-metadata">

**Author:** ![jofemodo](https://discourse.zynthian.org/user_avatar/discourse.zynthian.org/jofemodo/32/2_2.png) [@jofemodo](https://discourse.zynthian.org/u/jofemodo)\
**Post date:** [July 1, 2020, 6:49pm UTC](https://discourse.zynthian.org/t/touchscreen-widgets/4227/26 "2020-07-01T18:49:05Z")

</div>

It improves a little bit when using transparent-background for text labels:

![zynthian_buttonbar](https://discourse.zynthian.org/uploads/default/original/2X/3/3411551cf617e4d7950329fa1b7edeb850fcb23a.png)

Regards,

---

<div class="post-metadata">

**Author:** ![jofemodo](https://discourse.zynthian.org/user_avatar/discourse.zynthian.org/jofemodo/32/2_2.png) [@jofemodo](https://discourse.zynthian.org/u/jofemodo)\
**Post date:** [July 1, 2020, 7:00pm UTC](https://discourse.zynthian.org/t/touchscreen-widgets/4227/27 "2020-07-01T19:00:14Z")

</div>

OK @guys! It’s on master now!  
Simply update and check “enable touch widgets” from webconf-\> Interface -\> UI Options.

Enjoy!

---

<div class="post-metadata">

**Author:** ![opus.quatre](https://discourse.zynthian.org/user_avatar/discourse.zynthian.org/opus.quatre/32/700_2.png) [@opus.quatre](https://discourse.zynthian.org/u/opus.quatre)\
**Post date:** [July 1, 2020, 7:41pm UTC](https://discourse.zynthian.org/t/touchscreen-widgets/4227/28 "2020-07-01T19:41:19Z")

</div>

For me, tous looks vert nice… and sure, the transparence for Labelle improvise it more than " a little bit"…  
Without transparency, the median part of the parameter’s range was hidden… that’such better with transparency…

---

<div class="post-metadata">

**Author:** ![MrBroccoli](https://discourse.zynthian.org/user_avatar/discourse.zynthian.org/mrbroccoli/32/3195_2.png) [@MrBroccoli](https://discourse.zynthian.org/u/MrBroccoli)\
**Post date:** [July 1, 2020, 9:37pm UTC](https://discourse.zynthian.org/t/touchscreen-widgets/4227/29 "2020-07-01T21:37:04Z")

</div>

Works for me!

---

<div class="post-metadata">

**Author:** ![sailort](https://discourse.zynthian.org/letter_avatar_proxy/v4/letter/s/b19c9b/32.png) [@sailort](https://discourse.zynthian.org/u/sailort)\
**Post date:** [July 2, 2020, 9:31am UTC](https://discourse.zynthian.org/t/touchscreen-widgets/4227/31 "2020-07-02T09:31:48Z")

</div>

WOW! This is really something! But please, please, please, add Up/Down too, please.

---

<div class="post-metadata">

**Author:** ![Jtunes](https://discourse.zynthian.org/user_avatar/discourse.zynthian.org/jtunes/32/16402_2.png) [@Jtunes](https://discourse.zynthian.org/u/Jtunes)\
**Post date:** [July 2, 2020, 10:14am UTC](https://discourse.zynthian.org/t/touchscreen-widgets/4227/32 "2020-07-02T10:14:55Z")

</div>

I’d have to agree with @sailort. Touch-and-drag scrolling is great for synth parameters, but not so great for menu scrolling. We need something more precise than that.

Should we just put them alongside the others in the “touchbar”?

Another idea: also decrease scrolling sensitivity in menus? It would take longer to get to the bottom of the list, but it would be way more precise.

---

<div class="post-metadata">

**Author:** ![wyleu](https://discourse.zynthian.org/user_avatar/discourse.zynthian.org/wyleu/32/514_2.png) [@wyleu](https://discourse.zynthian.org/u/wyleu)\
**Post date:** [July 2, 2020, 1:50pm UTC](https://discourse.zynthian.org/t/touchscreen-widgets/4227/33 "2020-07-02T13:50:40Z")

</div>

Having trouble running this on an hdmi, which I would control from a mouse to access touch widgets. It’s killed the display stone dead on start up.

 ![image](https://discourse.zynthian.org/uploads/default/original/2X/b/b22a0ba379a5b2ff2252ca389540c0a1a444ef13.png)

 ![image](https://discourse.zynthian.org/uploads/default/original/2X/5/5a9266eada64f259c3689f8f542fbdb426500646.png)

This was after switching repo to this branch and back from gui interface.

---

<div class="post-metadata">

**Author:** ![wyleu](https://discourse.zynthian.org/user_avatar/discourse.zynthian.org/wyleu/32/514_2.png) [@wyleu](https://discourse.zynthian.org/u/wyleu)\
**Post date:** [July 2, 2020, 2:48pm UTC](https://discourse.zynthian.org/t/touchscreen-widgets/4227/34 "2020-07-02T14:48:59Z")

</div>

![image](https://discourse.zynthian.org/uploads/default/original/2X/3/3c920c3d52d23c8de2b0781285ae614537171b1f.png)

Working on zynthian-bigtouch.local ( 7" touchscreen)

I would suggest border of the buttons are not in dark grey but hilighted along with the button seperators.

Simply because when viewed off axis the touchscreen buttons become difficult to distinguish.

![image](https://discourse.zynthian.org/uploads/default/original/2X/c/c37f2ed35f57af4f6b6fde0b8fa20444b54b5029.png)

this is a 3.5" touch screen …

 ![IMG_20200702_161849](https://discourse.zynthian.org/uploads/default/original/2X/c/cb7af986e59dc788c6dfcdb571ac81f7c697fda6.jpeg)

---

<div class="post-metadata">

**Author:** ![sailort](https://discourse.zynthian.org/letter_avatar_proxy/v4/letter/s/b19c9b/32.png) [@sailort](https://discourse.zynthian.org/u/sailort)\
**Post date:** [July 5, 2020, 6:51pm UTC](https://discourse.zynthian.org/t/touchscreen-widgets/4227/35 "2020-07-05T18:51:22Z")

</div>

Is there any attempt for Up/Down for selector ongoing? That would be huge improvement for encoderless zynth with 3.5" screens. Please.

---

<div class="post-metadata">

**Author:** ![Tubbritt](https://discourse.zynthian.org/letter_avatar_proxy/v4/letter/t/a183cd/32.png) [@Tubbritt](https://discourse.zynthian.org/u/Tubbritt)\
**Post date:** [July 6, 2020, 7:37pm UTC](https://discourse.zynthian.org/t/touchscreen-widgets/4227/36 "2020-07-06T19:37:19Z")

</div>

Loving having these buttons on my Screen. Thanks for everything.

James.

---

<div class="post-metadata">

**Author:** ![riban](https://discourse.zynthian.org/user_avatar/discourse.zynthian.org/riban/32/2331_2.png) [@riban](https://discourse.zynthian.org/u/riban)\
**Post date:** [July 8, 2020, 5:58pm UTC](https://discourse.zynthian.org/t/touchscreen-widgets/4227/37 "2020-07-08T17:58:43Z")

</div>

@Jtunes, have you tried the menus in step sequencer (particularly the feature/stepseq branch rather than master)? These use a different method of scrolling menus with different dynamics. It would be interesting to see whether this gives better, worse or same behaviour to that you experience with the default scroll mechanism.

I prefer the idea of using pop-up control like menus which means there is insignificant impact on screen space and content can be context specific. The menus I added to step sequencer are accessed by touching the topbar, present a BACK button in the top bar and context sensitive options within the menu.

Another feature I developed for step sequencer is a parameter editor which is displayed within the topbar, with up, down, assert and cancel buttons and a display of the parameter and value. This allows adjustment of values with touch / mouse again without impacting screen space significantly.

---

<div class="post-metadata">

**Author:** ![Vincent](https://discourse.zynthian.org/user_avatar/discourse.zynthian.org/vincent/32/3677_2.png) [@Vincent](https://discourse.zynthian.org/u/Vincent)\
**Post date:** [July 8, 2020, 8:21pm UTC](https://discourse.zynthian.org/t/touchscreen-widgets/4227/38 "2020-07-08T20:21:36Z")

</div>

This is awesome ! Another proof of the constant evolution of the Zynthian, let it be known!  
I also found out how to get the SNAPSHOT encoder to bring me to my list of presets immediately; I disabled the midi messages in the admin menu, it’s perfect!

[Previous page](https://discourse.zynthian.org/t/touchscreen-widgets/4227.md?page=1)
