pub const DEFAULT_THEME_CSS: &str = "/* Eternal UI\'s default theme: dark, dense, flat, 1px borders, in the spirit\n * of Aseprite. Everything a widget looks like is here; copy this file and\n * change it, or add a stylesheet after it to override parts.\n *\n * Elements: column, row, panel, label, button, checkbox (with a `check`\n * child), input, separator, spacer.\n * Classes: panel, toolbar, primary, title, dim, vertical. */\n\n* {\n font-family: monospace;\n font-size: 11px;\n color: #d8d8d8;\n}\n\npanel, .panel {\n background-color: #2b2b2b;\n border: 1px solid #1c1c1c;\n padding: 4px;\n gap: 4px;\n}\n\n.toolbar {\n background-color: #333333;\n border-bottom: 1px solid #1c1c1c;\n padding: 2px;\n gap: 2px;\n}\n\nlabel.title {\n font-weight: bold;\n color: #ffffff;\n}\n\nlabel.dim {\n color: #9a9a9a;\n}\n\nbutton {\n background-color: #3f3f3f;\n border: 1px solid #1c1c1c;\n padding: 2px 6px;\n gap: 4px;\n color: #ececec;\n}\n\nbutton:hover {\n background-color: #4b4b4b;\n}\n\nbutton:active {\n background-color: #262626;\n}\n\nbutton:focus-visible {\n border-color: #5b9bd5;\n}\n\nbutton:disabled {\n background-color: #363636;\n color: #7a7a7a;\n}\n\nbutton.primary {\n background-color: #3b6ea5;\n border-color: #2a4f78;\n}\n\nbutton.primary:hover {\n background-color: #4a80b8;\n}\n\nbutton.primary:active {\n background-color: #2f5a88;\n}\n\ninput {\n background-color: #1e1e1e;\n border: 1px solid #141414;\n padding: 2px 4px;\n min-width: 96px;\n color: #ececec;\n}\n\ninput:focus {\n border-color: #5b9bd5;\n}\n\ninput:placeholder-shown {\n color: #7a7a7a;\n}\n\ninput:disabled {\n color: #7a7a7a;\n}\n\ncheckbox {\n gap: 4px;\n padding: 1px 0;\n}\n\ncheck {\n width: 10px;\n height: 10px;\n border: 1px solid #141414;\n background-color: #1e1e1e;\n}\n\ncheckbox:hover > check,\ncheckbox:focus-visible > check {\n border-color: #5b9bd5;\n}\n\ncheckbox:checked > check {\n background-color: #5b9bd5;\n}\n\ncheckbox:disabled {\n color: #7a7a7a;\n}\n\ncheckbox:disabled > check {\n background-color: #2b2b2b;\n}\n\nseparator {\n background-color: #1c1c1c;\n height: 1px;\n}\n\nrow > separator,\nseparator.vertical {\n width: 1px;\n height: auto;\n}\n";Expand description
The stylesheet Ui::new starts with: dark, dense,
flat, 1px borders, in the spirit of Aseprite. Read it to see which
classes it understands (panel, toolbar, primary, title, dim).