sugarlabs / convert Goto Github PK
View Code? Open in Web Editor NEWSugar units conversion activity
License: GNU General Public License v3.0
Sugar units conversion activity
License: GNU General Public License v3.0
Reproducer: enter a value for conversion, press convert, enter a different value.
Problem: result displayed is inconsistent with entered value.
Proposed solution: remove the convert button and do the conversion on each change to the value.
Reproducer: start, change dimension and units, stop, restart from journal entry.
Expected: dimension and units preserved.
Observed: dimension and units are reset to Length - Cables.
At the same time, add a reset button to restore dimension and units to defaults.
A child cannot easily learn the unit conversion ratios, because they are not shown.
With SUGAR_SCALING of 100, and org.sugarlabs.font default-size set to 7.0, on 1200x900 resolution, several problems appear.
Tested with 5ad6553.
As of 7bb29e4 the result can be copied by selecting it and using a mouse drag or ctrl+c shortcut. A text clipping can be dragged from the frame into the input field. But there's no toolbar buttons.
Add an edit toolbar and buttons. See toolkit and other activities for an example edit toolbar and icons.
Reproducer: start, click on toolbar Volume button, observe unit text.
Expected: Centimeter³
Observed: HTML Centimeter<sup><b>3</b></sup>
Also occurs in similar fashion with squared units in Area mode.
Regression since 66531be.
To the left of the Convert button is a value entry widget.
On the GTK+ 2 version, this was rendered with spin buttons; up and down arrows vertically aligned.
On the GTK+ 3 version, this is rendered with spin buttons; - and + horizontally aligned.
However, spin buttons are not needed, are a distraction, and so a plain unadorned text entry can be used instead.
9.0 ~ -9.00000000001
, it should be 9 ~ 9
,On start units default to Length - Cables.
This is not a useful unit, and distracts by introducing a unit that learners are unlikely to encounter.
The units should either;
po/
files, or;At the moment the activity has;
unit | swap | unit |
---|---|---|
value | ||
value - value |
An alternate design could be;
value | unit | value | unit |
---|
This would;
Discuss?
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.