jakobaxelsson / sossim

A system-of-systems (SoS) simulator
MIT License
0 stars 0 forks source link

Improve styling of user interface #11

Closed jakobaxelsson closed 11 months ago

jakobaxelsson commented 1 year ago

Use a CSS framework. Pico CSS appears to be a simple alternative mainly based on semantic tags. It can be customized e.g. to have a sparser layout by setting CSS variables (--spacing in the case of layout).

Main UI elements:

Some restructuring of the UI code is needed for this.

Also, the map area should be configured based on the available space given to it, and the actual map should be scaled to fit within that area.

jakobaxelsson commented 1 year ago

Did some experiments with Pico CSS, but not as easy as expected. In particular, the nav bar did not work at al. Have restructured the layout of the UI so that configuration controls are now to the right of the map.

jakobaxelsson commented 1 year ago

The SVG drawing now scales reasonably well to available space. Also, the drawing has been simplified so that one grid unit corresponds to one unit in the SVG's internal coordinate system. Scaling takes place on the entire SVG through CSS styles.

jakobaxelsson commented 11 months ago

A CSS file is now provided, where UI styling should be put.

jakobaxelsson commented 11 months ago

The menubar is in place. What remains is to save configurations from file and load them again.

jakobaxelsson commented 11 months ago

Fixed load and save of configuration files.