Moving widgets somewhere other than the top #5688
Replies: 1 comment
-
Posted at 2022-12-05 by @gfwilliams Thanks - glad you're enjoying it! Yes, it's totally possible to change the widget positions! First method is just to use Second method is just to change the 'area' of widgets and set the position manually. You could do this once, but some widgets start off with width=0 and change (maybe when a message is received).
For example:
Posted at 2022-12-06 by arthurgleckler Cool. But I tried
That happened both in the emulator and on the watch. The same thing happened when I tried loading the Pebble watch, which uses that API, through the IDE. I hope I'm not missing something obvious. Posted at 2022-12-06 by arthurgleckler I've followed the instructions on uploading modules, but I get Posted at 2022-12-06 by arthurgleckler I'm trying the code snippet you suggested instead. That will give me more control. Thanks again. Posted at 2022-12-06 by arthurgleckler I've submitted a pull request (#2305) that changes Posted at 2022-12-06 by @gfwilliams
That's fine (because it is trying to execute the module after upload) but if you now try running code, it should work. ... or this is maybe the better option: https://github.com/espruino/BangleApps/blob/master/modules/README.md#change-the-web-ide-search-path-to-include-banglejs-modules Thanks - I saw espruino/Espruino#2305 but I'm afraid I don't think that's going to be an easy one to put in, because it will likely cause corruption in a lot of other apps. Best bet is if you want to do that, in your clock, overwrite Posted at 2022-12-06 by arthurgleckler You're absolutely right, of course. I've modified my own app with a modified Posted at 2022-12-07 by @gfwilliams Great! Having seen that PR it did make me think that it probably would be preferable to not clear the background of the widget bar at all - since I think nearly every widget already clears the background itself anyway. ... but as you saw I think changing it and then testing it didn't break stuff could be quite a big undertaking :) Posted at 2022-12-07 by rigrig
Things would go Wrong when widgets are hidden/removed/resized though. Posted at 2022-12-08 by @gfwilliams Yes, although when widgets like 'back' remove themselves they clear where they were already. I'm sure there are plenty of others that don't though. It's probably one of those things that's far more effort to get working nicely than it is a benefit. Posted at 2023-01-24 by dapgo What about allowing the widget configuration from the apploader page? As solutions I can imagine:
Attachments: Posted at 2023-01-24 by @gfwilliams
What's wrong with the existing 'Widget Editor' app? Doesn't this do that already? I guess someone could just add a configuration page to BangleApps for that though? Posted at 2023-01-24 by dapgo I am aware of 'Widget Editor' app and it works perfectly but probably many users are not aware of the existence of the app. I think for new users the best is to have the functionality available by default. Posted at 2023-01-24 by arthurgleckler Wow, I hadn't heard of the Widget Editor app. That is a great idea. What I ended up doing was to define my own Thanks. Posted at 2023-01-25 by @gfwilliams @dapgo I'm afraid I don't have the time to completely reimplement something like this that already exists and works fine. I did add a note to the wiki at https://github.com/espruino/BangleApps/wiki though so maybe more people will become aware of it |
Beta Was this translation helpful? Give feedback.
-
Posted at 2022-12-05 by arthurgleckler
I have an app that has a round face. I've shifted it down to make space for the widgets at the top of the screen. However, if I were able to move the widgets inside the circle, I'd be able to take full advantage of the height of the screen. Is there any way to do that, or might it be a feature in the future?
Thanks.
P.S.: I love hacking my Bangle. It's such a pleasant programming experience, without a lot of unnecessary complexity. It's possible to write interesting programs in just a few kilobytes of RAM. It brings me back to the days of my TRS-80, but with JavaScript instead of Z80 assembly language!
Beta Was this translation helpful? Give feedback.
All reactions