* Cargo.toml: add feature * policy_state.rs: add handling of feature for choosen theme * advotracker_dark.ron: advotrackers dark theme * advotracker_light.ron: advotrackers light theme Signed-off-by: Ralf Zerres <ralf.zerres@networkx.de>
100 lines
1.7 KiB
Plaintext
100 lines
1.7 KiB
Plaintext
Theme (
|
|
styles: {
|
|
"button_menu": (
|
|
base: "menu",
|
|
properties: {
|
|
"background": "transparent",
|
|
"border_radius": 0,
|
|
"border_width": 0,
|
|
"font_size": "$ICON_SIZE_16",
|
|
"h_align": "left",
|
|
"margin": (0, 4, 0, 0),
|
|
},
|
|
),
|
|
"container_menu": (
|
|
properties: {
|
|
"border_radius": 0,
|
|
"border_width": 1,
|
|
"background": "$BRIGHT_GRAY",
|
|
"border_brush": "$LINK_WATER",
|
|
"padding": 4,
|
|
},
|
|
),
|
|
"container_progress": (
|
|
properties: {
|
|
"border_radius": 3,
|
|
"border_width": 1,
|
|
"background": "$BRIGHT_GRAY",
|
|
"border_brush": "$LINK_WATER",
|
|
"padding": 14,
|
|
"h_align": "end",
|
|
},
|
|
),
|
|
"container_form": (
|
|
base: "container",
|
|
properties: {
|
|
"background": "$GRAY_NURSE",
|
|
"border_brush": "$LINK_WATER",
|
|
"border_radius": 3,
|
|
"border_width": 1,
|
|
"padding": 14,
|
|
"v_align": "top",
|
|
},
|
|
),
|
|
"header_bar": (
|
|
base: "header",
|
|
properties: {
|
|
"background": "$GRAY_NURSE",
|
|
"foreground": "$BRIGHT_GRAY",
|
|
},
|
|
),
|
|
"menu": (
|
|
//base: "base",
|
|
properties: {
|
|
"font_size": 16,
|
|
"font_family": "$MEDIUM_FONT",
|
|
"background": "$GRAY_NURSE",
|
|
"opacity": 1,
|
|
"foreground": "$BRIGHT_GRAY",
|
|
},
|
|
states: {
|
|
"pressed": {
|
|
"background": "$WHITE",
|
|
},
|
|
},
|
|
),
|
|
"popup_progress": (
|
|
base: "popup",
|
|
properties: {
|
|
"width": 300,
|
|
"heigth": 120,
|
|
},
|
|
),
|
|
"stack_menu": (
|
|
properties: {
|
|
"spacing": 2,
|
|
"orientation": "vertical",
|
|
"h_align": "left",
|
|
},
|
|
),
|
|
"stack_progress": (
|
|
properties: {
|
|
"spacing": 8,
|
|
"margin": (16, 16, 16, 16),
|
|
},
|
|
),
|
|
"textblock": (
|
|
//base: "base",
|
|
properties: {
|
|
"font_size": "$ICON_SIZE_12",
|
|
},
|
|
),
|
|
"textblock_progress": (
|
|
base: "textblock",
|
|
properties: {
|
|
"h_align": "center",
|
|
"v_align": "center",
|
|
},
|
|
),
|
|
}
|
|
) |