-
Notifications
You must be signed in to change notification settings - Fork 20
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Nicer UI #4
Comments
Rotating would be great indeed. The best option would be that it rotate when we use the landscape mode ! (but it would be hard to implement). So maybe a rotate button yes ! But i like the "interface' like it is now, i feel like we don't need much more |
I think landscape mode is implemented completely internally to xochitl. AFAICT there's no way to actually figure out how that's set (e.g. the framebuffer didn't change mode when I tried it a couple of days ago, I think). Personally, I also don't use landscape mode a lot. Buttons for the functions are IMO pretty important for discoverability - I implemented rotation earlier today, but unless you click the image by accident, you won't notice :) There are also a couple different functions I'd like to add (downloading the current screen as a PNG came up today, for example). Don't worry, I intend to make any added UI elements discrete and don't want to clutter it either :) |
Please consider adding a "stop streaming"/"restart streaming" button. That would allow people to finish a sketch or phrase before putting it "online". |
@torwag That's a good idea, thanks :) |
I took the liberty of writing a (hopefully) better UI.
at line 292. This is an awesome project, by the way 👍 |
I'll take a closer look in a few days. From a first look, it seems to support everything needed, but I haven't actually opened it yet to see :)
To clarify: Do you mean to use a local HTML file, or would we need that if it's served by the webserver as well? Because if the latter, I'd like to understand why :) |
It's only needed if you want to use a local HTML file! |
I tested the new UI. edit: If someone finds the icons to small (e.g. for touchscreen devices). You can use the browser zoom-in function. The rM-image remains the same size but the buttons increase. |
merge? |
@torwag to add pinch&zoom gestures add this to the script bit: var pinchtimer=0;
window.onwheel = function (e) {
if (e.ctrlKey) {
e.preventDefault();
zoom -= e.deltaY * 0.01;
clearTimeout(pinchtimer);
pinchtimer = setTimeout(resize, 10);
}
}; not amazing but a start? |
@bordaigorl Can you open a PR to serve this as the default page? For now, put the HTML in a constant, like it currently is (though maybe in a separate go-file, or at least at the end of the file, so it's not as much in the way). We can use go generate to bundle separate files in a later commit. We can discuss it properly in the PR itself, but a couple quick remarks in case you want to incorporate them:
Thanks for taking the time :) |
I may be able to do something about this next week. |
@bordaigorl f you don't have the time (and/or don't want to bother with the extra refactorings I asked for) I can also do it myself. I just asked for a PR to make sure that you are properly attributed and don't feel I'm abusing your work :) |
@Merovius hi sorry for being so unresponsive. I really had no time for this. Please don't let me stop this from being incorporated, I am happy if it's useful to others. |
No reason to apologize, you didn't spend any less time on it than me :) I'll throw something together. |
The Web-UI is extremely minimal (or… non-existent). We should add some swagger, have hoverable buttons for rotating and maybe animate the rotation and somesuch.
The text was updated successfully, but these errors were encountered: