orbtk_theme

Constant LIGHT_THEME_RON

Source
pub const LIGHT_THEME_RON: &str = "Theme (\n    styles: {\n        \"base\": (\n            properties: {\n                \"font_size\": \"$FONT_SIZE_16\",\n                \"font_family\": \"$MEDIUM_FONT\",\n                \"icon_size\": \"$ICON_SIZE_16\",\n                \"icon_family\": \"$ICON_FONT\",\n            },\n        ),\n        \"window\": (\n             properties: {\n                \"background\": \"$ALABASTER\",\n             },\n        ),\n        \"body\": (\n            properties: {\n                \"foreground\": \"$BRIGHT_GRAY\",\n                \"font_size\": \"$FONT_SIZE_16\",\n                \"font_family\": \"$MEDIUM_FONT\",\n            },\n        ),\n        \"header\": (\n            base: \"body\",\n            properties: {\n                \"font_size\": \"$FONT_SIZE_24\",\n            }\n        ),\n        \"button\": ( \n            base: \"base\",\n            properties: {\n                \"height\": 36,\n                \"foreground\": \"$BRIGHT_GRAY\",\n                \"icon_brush\": \"$BRIGHT_GRAY\",\n                \"background\": \"$ALTO\",\n                \"border_radius\": 4,\n            }, \n            states: {\n                \"pressed\": {\n                    \"background\": \"$SILVER_CHALICE\",\n                },\n                \"selected\": {\n                    \"background\": \"$SILVER_CHALICE\",\n                },\n                \"disabled\": {\n                    \"background\": \"$ROLLING_STONE\",\n                    \"foreground\": \"$BRIGHT_GRAY\",\n                    \"icon_brush\": \"$BRIGHT_GRAY\",\n                },\n            },\n        ),\n        \"button_primary\": (\n            base: \"button\",\n            properties: {\n                \"background\": \"$GOLDEN_DREAM\",\n            },\n        ),\n        \"button_small\": (\n            properties: {\n                \"border_radius\": 0,\n                \"icon_brush\": \"$BRIGHT_GRAY\",\n                \"font_size\": \"$ICON_SIZE_12\",\n                \"background\": \"transparent\",\n                \"height\": 14,\n                \"spacing\": 0,\n                \"padding\": 0,\n            },\n            states: {\n                \"pressed\": {\n                    \"background\": \"$SILVER_CHALICE\",\n                },\n            },\n        ),\n        \"button_square\": ( \n            base: \"button\",\n            properties: {\n                \"border_radius\": 1,\n            }, \n        ),\n        \"button_single_content\": (\n            base: \"button\",\n            properties: {\n                \"spacing\": 0,\n            },\n        ),\n        \"check_box\": (\n            base: \"base\",\n            properties: {\n                \"foreground\": \"$BRIGHT_GRAY\",\n                \"icon_size\": \"$ICON_SIZE_18\",\n                \"background\": \"transparent\",\n                \"border_radius\": 2,\n                \"border_width\": 1,\n                \"border_brush\": \"$SILVER_CHALICE\",\n                \"icon_brush\": \"transparent\",\n            },\n            states: {\n                \"selected\": {\n                    \"background\": \"$GOLDEN_DREAM\",\n                    \"border_brush\": \"$GOLDEN_DREAM\",\n                    \"icon_brush\": \"$BRIGHT_GRAY\",\n                },\n            },\n        ),\n        \"grid\": (\n            base: \"base\",\n            properties: {\n                \"background\": \"transparent\",\n            },\n        ),\n        \"switch\": (\n            properties: {\n                \"width\": 36,\n                \"height\": 32,\n            },\n        ),\n        \"switch_track\": (\n            properties: {\n                \"height\": 14,\n                \"border_radius\": 7,\n                \"background\": \"$SILVER_CHALICE\",\n            }\n        ),\n        \"switch_toggle\": (\n            properties: {\n                \"width\": 20,\n                \"height\": 20,\n                \"border_radius\": 10,\n                \"background\": \"$ALTO\",\n            },\n            states: {\n                \"selected\": {\n                    \"background\": \"$GOLDEN_DREAM\",\n                },\n            },\n        ),\n        \"container\": (\n            base: \"base\",\n            properties: {\n                \"padding\": 4,\n            },\n        ),\n        \"text_block_header\": (\n            base: \"base\",\n            properties: {\n                \"font_size\": \"$FONT_SIZE_24\",\n            },\n        ),\n        \"text_box\": (\n            base: \"base\",\n            properties: {\n                \"height\": 32,\n                \"foreground\": \"$BRIGHT_GRAY\",\n                \"background\": \"$ALABASTER\",\n                \"border_brush\": \"$SILVER_CHALICE\",\n                \"border_width\": 1,\n                \"border_radius\": 3,\n                \"padding\": 6,\n            },\n            states: {\n                \"focused\": {\n                    \"border_brush\": \"$SUNFLOWER\",\n                },\n                \"empty\": {\n                    \"foreground\": \"$SILVER_CHALICE\",\n                },\n                \"empty_focused\": {\n                    \"foreground\": \"$SILVER_CHALICE\",\n                    \"border_brush\": \"$SUNFLOWER\",\n                }\n            },\n        ),\n        \"numeric_box\": (\n            base: \"base\",\n            properties: {\n                \"height\": 32,\n                \"foreground\": \"$BRIGHT_GRAY\",\n                \"background\": \"$ALABASTER\",\n                \"border_brush\": \"$SILVER_CHALICE\",\n                \"border_width\": 1,\n                \"border_radius\": 3,\n                \"padding\": 6,\n            },\n            states: {\n                \"focused\": {\n                    \"border_brush\": \"$SUNFLOWER\",\n                }\n            },\n        ),\n        \"cursor\": (\n            properties: {\n                \"opacity\": 1,\n                \"background\": \"transparent\",\n            },\n            states: {\n                \"focused\": {\n                    \"background\": \"$GOLD_TIPS\",\n                },\n                \"expanded\": {\n                    \"opacity\": 0.3,\n                    \"background\": \"$GOLD_TIPS\",\n                },\n            },\n        ),\n        \"slider\": (\n            properties: {\n                \"height\": 24,\n                \"border_radius\": 2,\n                \"background\": \"$SILVER_CHALICE\",\n            }\n        ),\n        \"thumb\": (\n            properties: {\n                \"width\": 24,\n                \"height\": 24,\n                \"border_radius\": 12,\n                \"background\": \"$ALTO\",\n            },\n            states: {\n                \"pressed\": {\n                    \"background\": \"$GOLDEN_DREAM\",\n                },\n            },\n        ),\n        \"items_widget\": (\n            properties: {\n                \"background\": \"transparent\",\n                \"border_brush\": \"$SILVER_CHALICE\",\n                \"border_width\": 1,\n                \"border_radius\": 2,\n                \"padding\": 4,\n            }\n        ),\n        \"small_text\": (\n            base: \"body\",\n             properties: {\n                \"font_size\": \"$FONT_SIZE_12\",\n                \"foreground\": \"$BRIGHT_GRAY\",\n            },\n        ),\n        \"combo_box\": (\n            base: \"base\",\n            properties: {\n                \"foreground\": \"$BRIGHT_GRAY\",\n                \"icon_brush\": \"$BRIGHT_GRAY\",\n                \"background\": \"$ALABASTER\",\n                \"border_brush\": \"$SILVER_CHALICE\",\n                \"border_width\": 1,\n                \"border_radius\": 3,\n                \"padding\": 6,\n            },\n            states: {\n                \"selected\": {\n                    \"border_brush\": \"$ENERGY_YELLOW\",\n                },\n            },\n        ),\n        \"popup\": ( \n            properties: {\n                \"background\": \"$WHITE\",\n                \"border_brush\": \"$LYNCH\",\n                \"border_width\": 1,\n                \"border_radius\": 2,\n            },\n        ),\n        \"combo_box_item\": (\n            properties: {\n                \"font_size\": \"$FONT_SIZE_12\",\n                \"foreground\": \"$BRIGHT_GRAY\",\n                \"background\": \"transparent\",\n                \"padding_left\": 8,\n                \"padding_right\": 8,\n            },\n            states: {\n                \"selected\": {\n                    \"foreground\": \"$BRIGHT_GRAY\",\n                    \"background\": \"$SUNFLOWER\",\n                },\n                \"pressed\": {\n                    \"foreground\": \"$BRIGHT_GRAY\",\n                    \"background\": \"$SUNFLOWER\",\n                },\n            },\n        ),\n        \"scroll_bar\": (\n            properties: {\n                \"background\": \"$ALTO\",\n                \"border_radius\": 2,\n            },\n        ),\n        \"list_view\": (\n            base: \"base\",\n            properties: {\n                \"foreground\": \"$LINK_WATER\",\n                \"background\": \"transparent\",\n                \"border_brush\": \"$SILVER_CHALICE\",\n                \"border_width\": 1,\n                \"border_radius\": 3,\n            },\n        ),\n        \"list_view_item\": (\n            properties: {\n                \"font_size\": \"$FONT_SIZE_12\",\n                \"foreground\": \"$BRIGHT_GRAY\",\n                \"background\": \"transparent\",\n                \"padding_left\": 8,\n                \"padding_right\": 8,\n            },\n            states: {\n                \"selected\": {\n                    \"foreground\": \"$BRIGHT_GRAY\",\n                    \"background\": \"$SUNFLOWER\",\n                },\n                \"pressed\": {\n                    \"foreground\": \"$BRIGHT_GRAY\",\n                    \"background\": \"$SUNFLOWER\",\n                },\n            },\n        ),\n        \"progress_bar\": (\n             properties: {\n                \"background\": \"$WHITE\",\n                \"border_color\": \"$SILVER_CHALICE\",\n                \"border_radius\": 4,\n                \"border_width\": 1,\n                \"height\": 16,\n                \"padding\": 2,\n             },\n        ),\n        \"progress_bar_indicator\": (\n            properties: {\n                \"background\": \"$GOLDEN_DREAM\",\n                \"border_radius\": 1,\n                \"height\": 12,\n                \"width\": 0,\n            }\n        ),\n        \"tab_widget\": (\n            properties: {\n                \"border_brush\": \"$SILVER_CHALICE\",\n                \"border_width\": 1,\n                \"background\": \"transparent\",\n            },\n        ),\n        \"tab_header\": (\n            base: \"base\",\n            properties: {\n                \"height\": 32,\n                \"font_sze\": \"$FONT_SIZE_12\",\n                \"foreground\": \"$BRIGHT_GRAY\",\n                \"background\": \"$ALTO\",\n                \"padding_left\": 8,\n                \"padding_right\": 8,\n                \"border_radius\": 0\n            },\n            states: {\n                \"selected\": {\n                    \"background\": \"$ATHS_SPECIAL\"\n                }\n            }\n        ),\n        \"tab_header_bar\": (\n             properties: {\n                \"background\": \"$GOLDEN_DREAM\",\n                \"height\": 2\n            }\n        )\n    },\n)\n";
Expand description

The light theme resource file.