Skip to content

Instantly share code, notes, and snippets.

@jhyland87
Last active June 24, 2024 06:38
Show Gist options
  • Save jhyland87/da629a6299d08f4b1773f63f9c03897d to your computer and use it in GitHub Desktop.
Save jhyland87/da629a6299d08f4b1773f63f9c03897d to your computer and use it in GitHub Desktop.
Custom fluidd theme that sets the background image to the webcam stream, and forces all cards to be semi-transparent until hovered over
/**
* HUD (heads up display) style dashboard for Fluidd.
*
* Screenshots: https://imgur.com/a/fluidd-custom-css-hud-style-dashboard-EUFwbPe
* Reddit: https://www.reddit.com/r/klippers/comments/1dmf75y/neat_custom_css_that_changes_the_fluidd/
*/
/* Set the page background to the webcam feed */
main.v-main > div.v-main__wrap > div.container
/* Experimental!! - Seeing if this will only set the bg image if there's something printing.
:has(div[id=card-content] > div.v-tabs-items > div.v-window__container > div.v-window-item:nth-of-type(1):is(.v-window-item--active))
*/
{
background-image: url(http://192.168.0.96:4408/webcam/?action=stream);
background-attachment: fixed;
background-size: cover;
background-repeat: no-repeat;
}
/**
* Look for any of the panels based on some specific
* known classes, and set the non-hover background
* color to 20% opaque with a dark color with a
* fancy transition thingy.
*
* This should bring panel opacity back to 0 with
* the correct theme color when you hover over it.
*/
div:where(
.v-data-table,
.v-tabs-items,
.v-card,
.v-expansion-panel):not(:hover)
{
background-color: rgb(0 0 0 / 20%) !important;
transition: background-color 0.5s ;
transition-timing-function: cubic-bezier(.29, 1.01, 1, -0.68);
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment