sculpt: slight visual improvements of leitzentrale

This patch improves the appearance of the leitzentrale by eliminating
the (hardly visible) decorations from the GUI and graph views, and by
animating the motion of the graph position. The latter is meant to
remove the stuttering effect when the graph's size changes (and
re-centered).
This commit is contained in:
Norman Feske 2019-01-02 16:09:43 +01:00
parent a636f90240
commit 97bfc13237
2 changed files with 5 additions and 1 deletions

View File

@ -137,6 +137,9 @@
</dir>
<dir name="dev"> <log/> </dir>
</vfs>
<policy label="log" decoration="yes"/>
<policy label="runtime -> leitzentrale -> runtime_view" decoration="no" motion="20"/>
<policy label_prefix="gui" decoration="no"/>
</config>
<route>
<service name="ROM" label="default.png"> <parent label="drop_shadow.png"/> </service>

View File

@ -620,11 +620,12 @@ void Sculpt::Main::_handle_window_layout()
auto gen_window = [&] (Xml_node win, Rect rect) {
if (rect.valid()) {
xml.node("window", [&] () {
xml.attribute("id", win.attribute_value("id", 0UL));
xml.attribute("id", win.attribute_value("id", 0UL));
xml.attribute("xpos", rect.x1());
xml.attribute("ypos", rect.y1());
xml.attribute("width", rect.w());
xml.attribute("height", rect.h());
xml.attribute("title", win.attribute_value("label", Label()));
});
}
};