2 lines
No EOL
7.2 KiB
HTML
2 lines
No EOL
7.2 KiB
HTML
<!DOCTYPE html><html lang="en"><head><meta charset="utf-8"><meta name="viewport" content="width=device-width, initial-scale=1.0"><meta name="generator" content="rustdoc"><meta name="description" content="Contains the `Theme` type and its widget stylesheet implementations."><title>cosmic::theme - Rust</title><script>if(window.location.protocol!=="file:")document.head.insertAdjacentHTML("beforeend","SourceSerif4-Regular-6b053e98.ttf.woff2,FiraSans-Italic-81dc35de.woff2,FiraSans-Regular-0fe48ade.woff2,FiraSans-MediumItalic-ccf7e434.woff2,FiraSans-Medium-e1aa3f0a.woff2,SourceCodePro-Regular-8badfe75.ttf.woff2,SourceCodePro-Semibold-aa29a496.ttf.woff2".split(",").map(f=>`<link rel="preload" as="font" type="font/woff2" crossorigin href="../../static.files/${f}">`).join(""))</script><link rel="stylesheet" href="../../static.files/normalize-9960930a.css"><link rel="stylesheet" href="../../static.files/rustdoc-aa0817cf.css"><meta name="rustdoc-vars" data-root-path="../../" data-static-root-path="../../static.files/" data-current-crate="cosmic" data-themes="" data-resource-suffix="" data-rustdoc-version="1.90.0-nightly (3048886e5 2025-07-30)" data-channel="nightly" data-search-js="search-fa3e91e5.js" data-settings-js="settings-5514c975.js" ><script src="../../static.files/storage-68b7e25d.js"></script><script defer src="../sidebar-items.js"></script><script defer src="../../static.files/main-eebb9057.js"></script><noscript><link rel="stylesheet" href="../../static.files/noscript-32bb7600.css"></noscript><link rel="alternate icon" type="image/png" href="../../static.files/favicon-32x32-6580c154.png"><link rel="icon" type="image/svg+xml" href="../../static.files/favicon-044be391.svg"></head><body class="rustdoc mod"><!--[if lte IE 11]><div class="warning">This old browser is unsupported and will most likely display funky things.</div><![endif]--><nav class="mobile-topbar"><button class="sidebar-menu-toggle" title="show sidebar"></button></nav><nav class="sidebar"><div class="sidebar-crate"><h2><a href="../../cosmic/index.html">cosmic</a><span class="version">1.0.0</span></h2></div><div class="sidebar-elems"><section id="rustdoc-toc"><h2 class="location"><a href="#">Module theme</a></h2><h3><a href="#modules">Module Items</a></h3><ul class="block"><li><a href="#modules" title="Modules">Modules</a></li><li><a href="#structs" title="Structs">Structs</a></li><li><a href="#enums" title="Enums">Enums</a></li><li><a href="#statics" title="Statics">Statics</a></li><li><a href="#functions" title="Functions">Functions</a></li><li><a href="#types" title="Type Aliases">Type Aliases</a></li></ul></section><div id="rustdoc-modnav"><h2 class="in-crate"><a href="../index.html">In crate cosmic</a></h2></div></div></nav><div class="sidebar-resizer" title="Drag to resize sidebar"></div><main><div class="width-limiter"><rustdoc-search></rustdoc-search><section id="main-content" class="content"><div class="main-heading"><div class="rustdoc-breadcrumbs"><a href="../index.html">cosmic</a></div><h1>Module <span>theme</span><button id="copy-path" title="Copy item path to clipboard">Copy item path</button></h1><rustdoc-toolbar></rustdoc-toolbar><span class="sub-heading"><a class="src" href="../../src/cosmic/theme/mod.rs.html#4-315">Source</a> </span></div><details class="toggle top-doc" open><summary class="hideme"><span>Expand description</span></summary><div class="docblock"><p>Contains the <a href="../struct.Theme.html" title="struct cosmic::Theme"><code>Theme</code></a> type and its widget stylesheet implementations.</p>
|
|
</div></details><h2 id="reexports" class="section-header">Re-exports<a href="#reexports" class="anchor">§</a></h2><dl class="item-table reexports"><dt><code>pub use <a class="mod" href="../style/index.html" title="mod cosmic::style">style</a>::*;</code></dt></dl><h2 id="modules" class="section-header">Modules<a href="#modules" class="anchor">§</a></h2><dl class="item-table"><dt><a class="mod" href="portal/index.html" title="mod cosmic::theme::portal">portal</a><wbr><span class="stab portability" title="Available on crate feature `xdg-portal` only"><code>xdg-portal</code></span></dt><dt><a class="mod" href="style/index.html" title="mod cosmic::theme::style">style</a></dt><dd>Stylesheet implements for <a href="../struct.Theme.html" title="struct cosmic::Theme"><code>crate::Theme</code></a></dd></dl><h2 id="structs" class="section-header">Structs<a href="#structs" class="anchor">§</a></h2><dl class="item-table"><dt><a class="struct" href="struct.Theme.html" title="struct cosmic::theme::Theme">Theme</a></dt></dl><h2 id="enums" class="section-header">Enums<a href="#enums" class="anchor">§</a></h2><dl class="item-table"><dt><a class="enum" href="enum.ThemeType.html" title="enum cosmic::theme::ThemeType">Theme<wbr>Type</a></dt></dl><h2 id="statics" class="section-header">Statics<a href="#statics" class="anchor">§</a></h2><dl class="item-table"><dt><a class="static" href="static.COSMIC_DARK.html" title="static cosmic::theme::COSMIC_DARK">COSMIC_<wbr>DARK</a></dt><dt><a class="static" href="static.COSMIC_HC_DARK.html" title="static cosmic::theme::COSMIC_HC_DARK">COSMIC_<wbr>HC_<wbr>DARK</a></dt><dt><a class="static" href="static.COSMIC_HC_LIGHT.html" title="static cosmic::theme::COSMIC_HC_LIGHT">COSMIC_<wbr>HC_<wbr>LIGHT</a></dt><dt><a class="static" href="static.COSMIC_LIGHT.html" title="static cosmic::theme::COSMIC_LIGHT">COSMIC_<wbr>LIGHT</a></dt><dt><a class="static" href="static.TRANSPARENT_COMPONENT.html" title="static cosmic::theme::TRANSPARENT_COMPONENT">TRANSPARENT_<wbr>COMPONENT</a></dt></dl><h2 id="functions" class="section-header">Functions<a href="#functions" class="anchor">§</a></h2><dl class="item-table"><dt><a class="fn" href="fn.active.html" title="fn cosmic::theme::active">active</a></dt><dd>Currently-defined theme.</dd><dt><a class="fn" href="fn.active_type.html" title="fn cosmic::theme::active_type">active_<wbr>type</a></dt><dd>Currently-defined theme type.</dd><dt><a class="fn" href="fn.is_dark.html" title="fn cosmic::theme::is_dark">is_dark</a></dt><dd>Whether the active theme has a dark preference.</dd><dt><a class="fn" href="fn.is_high_contrast.html" title="fn cosmic::theme::is_high_contrast">is_<wbr>high_<wbr>contrast</a></dt><dd>Whether the active theme is high contrast.</dd><dt><a class="fn" href="fn.spacing.html" title="fn cosmic::theme::spacing">spacing</a></dt><dd>Preferred interface spacing parameters defined by the active theme.</dd><dt><a class="fn" href="fn.system_dark.html" title="fn cosmic::theme::system_dark">system_<wbr>dark</a></dt><dt><a class="fn" href="fn.system_light.html" title="fn cosmic::theme::system_light">system_<wbr>light</a></dt><dt><a class="fn" href="fn.system_preference.html" title="fn cosmic::theme::system_preference">system_<wbr>preference</a></dt><dd>Loads the preferred system theme from <code>cosmic-config</code>.</dd></dl><h2 id="types" class="section-header">Type Aliases<a href="#types" class="anchor">§</a></h2><dl class="item-table"><dt><a class="type" href="type.CosmicColor.html" title="type cosmic::theme::CosmicColor">Cosmic<wbr>Color</a></dt><dt><a class="type" href="type.CosmicComponent.html" title="type cosmic::theme::CosmicComponent">Cosmic<wbr>Component</a></dt><dt><a class="type" href="type.CosmicTheme.html" title="type cosmic::theme::CosmicTheme">Cosmic<wbr>Theme</a></dt></dl></section></div></main></body></html> |