You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Desktoxin is a markup/style sheet language for Desktox GUI layouts.
Syntax
-- Lua-like comments-- Desktoxins can be injected into each other inject"orange_button.dtxin"-- Styles are essentially style sheet classesstyleblueish {
background_colour=light_blue;
}
-- 'for' says what is the basis of this style, i.e. what element-- you actually get from the constructorstyleblue_buttonforbutton {
background_colour=blue;
foreground_colour=white;
}
-- Anything that isn't a style is a part of the document itself-- Names are used for reference in Lua codeblue_button"button1" {
x=5;
y=4;
width=12%;
height=3;
text="Foo";
}
-- blueish did not specify the parent element, therefore-- it has to be used explicitlybuttonblueish"button2" {
x=0;
y=0;
width=1;
height=1;
}
list_view"my_list" {
x=50%;
y=0;
width=50%;
height=100%;
-- Arrays are defined in [square brackets]children= [
-- Any number of styles can be applied to-- an element. They will be used in the-- order they are listed in, the next one-- always overriding the previous one.-- Values that do not cause a clash-- will be keptblue_buttonblueish"button3" {
x=0;
y=0;
width=100%;
height=3;
};
];
}
The text was updated successfully, but these errors were encountered:
Desktoxin is a markup/style sheet language for Desktox GUI layouts.
Syntax
The text was updated successfully, but these errors were encountered: