Windy.com - Dark Mode [Customizable]

Dark theme for Windy.com with customizable colors

θα χρειαστεί να εγκαταστήσετε μια επέκταση όπως το Tampermonkey, το Greasemonkey ή το Violentmonkey για να εγκαταστήσετε αυτόν τον κώδικα.

You will need to install an extension such as Tampermonkey to install this script.

θα χρειαστεί να εγκαταστήσετε μια επέκταση όπως το Tampermonkey ή το Violentmonkey για να εγκαταστήσετε αυτόν τον κώδικα.

θα χρειαστεί να εγκαταστήσετε μια επέκταση όπως το Tampermonkey ή το Userscripts για να εγκαταστήσετε αυτόν τον κώδικα.

You will need to install an extension such as Tampermonkey to install this script.

Θα χρειαστεί να εγκαταστήσετε μια επέκταση διαχείρισης κώδικα χρήστη για να εγκαταστήσετε αυτόν τον κώδικα.

(Έχω ήδη έναν διαχειριστή κώδικα χρήστη, επιτρέψτε μου να τον εγκαταστήσω!)

You will need to install an extension such as Stylus to install this style.

You will need to install an extension such as Stylus to install this style.

You will need to install an extension such as Stylus to install this style.

You will need to install a user style manager extension to install this style.

You will need to install a user style manager extension to install this style.

You will need to install a user style manager extension to install this style.

(Έχω ήδη έναν διαχειριστή στυλ χρήστη, επιτρέψτε μου να τον εγκαταστήσω!)

/* ==UserStyle==
@name           Windy.com - Dark Mode [Customizable]
@namespace      typpi.online
@version        2.3
@description    Dark theme for Windy.com with customizable colors
@author         Nick2bad4u
@license        UnLicense

@homepageURL    https://github.com/Nick2bad4u/UserStyles
@supportURL     https://github.com/Nick2bad4u/UserStyles/issues
@preprocessor   stylus

@var checkbox darken-map 'Darken Map' 1
@var color darken-map-strength 'Darken Map Strength' #0000004D

@var color primary-red "Primary Red" #ff0000
@var color light-red "Light Red" #ff4d4d
@var color primary-orange "Primary Orange" #ffa500
@var color light-orange "Light Orange" #ffcc80
@var color primary-white "Primary White" #ffffff
@var color primary-yellow "Primary Yellow" #ffff00
@var color primary-black "Primary Black" #000000
@var color error-red "Error Red" #ff0000
@var color ok-green "OK Green" #00ff00
@var color moderate-warning "Moderate Warning" #ffcc00
@var color severe-warning "Severe Warning" #ff9900
@var color extreme-warning "Extreme Warning" #ff3300
@var color primary-gray "Primary Gray" #808080
@var color dark-gray "Dark Gray" #666666
@var color light-gray "Light Gray" #cccccc
@var color lighter-gray "Lighter Gray" #e0e0e0
@var color progress-line "Progress Line" #ADADAD
==/UserStyle== */
@-moz-document domain("windy.com")
{
	:root
	{
		--color-red: var(primary-red) !important;
		--color-red-light: var(light-red) !important;
		--color-orange: var(primary-orange) !important;
		--color-orange-light: var(light-orange) !important;
		--color-white: var(primary-white) !important;
		--color-yellow: var(primary-yellow) !important;
		--color-transparent: #404040c7;
		--color-transparent-dark: #d11010a2;
		--color-black: var(primary-black) !important;
		--color-error: var(error-red) !important;
		--color-ok: var(ok-green) !important;
		--color-warning-moderate: var(moderate-warning) !important;
		--color-warning-severe: var(severe-warning) !important;
		--color-warning-extreme: var(extreme-warning) !important;
		--color-gray: var(primary-gray) !important;
		--color-gray-dark: var(dark-gray) !important;
		--color-gray-light: var(light-gray) !important;
		--color-gray-light2: var(lighter-gray) !important;
		--color-text-primary: var(light-gray) !important;
		--color-text-secondary: var(primary-yellow) !important;
		--color-text-link: var(light-orange) !important;
		--color-header: var(light-orange) !important;
		--color-icons: var(light-orange) !important;
		--color-background-primary: var(primary-black) !important;
		--color-background-secondary: var(primary-gray) !important;
		--color-ui-primary: var(primary-red) !important;
		--color-ui-secondary: var(light-red) !important;
		--color-ui-background: var(dark-gray) !important;
		--color-border: var(primary-gray) !important;
		--color-border-selected: var(light-orange) !important;
		--darken-map-strength: var(darken-map-strength) !important;
		--progress-line: var(progress-line) !important;
	}

	#plugin-detail,
	#device-tablet #plugin-multimodel.open,
	#device-desktop #plugin-multimodel.open,
	.detail .forecast-table .td-hour td,
	.detail .forecast-table td,
	.detail .legend span,
	.detail .legend .legend-both,
	.mm-fullscreen,
	#search-top-wrapper,
	.nearby-features.svelte-ckoxom .nearby-feature__text
	{
		filter: invert(1) hue-rotate(180deg) !important;
	}

	.progress-bar .progress-line .avbl
	{
		background-color: progress-line
	}

	.td-wind.height-wind.d-display-table td,
	.td-gust.height-gust.d-display-table td
	{
		color: #000000 !important;
		font-weight: 700;
	}

	.detail .forecast-table .td-hour td,
	.detail .forecast-table td,
	.detail .legend span,
	.detail .legend .legend-both,
	.mm-fullscreen,
	.detail .sticky-title,
	#plugin-search .results-item,
	.nearby-features.svelte-ckoxom .nearby-feature__text
	{
		color: #ffffff9c !important;
	}

	if ( darken-map)
	{
		.leaflet-container .leaflet-marker-pane,
		.leaflet-container .leaflet-overlay-pane,
		.leaflet-container .leaflet-shadow-pane,
		.leaflet-container .leaflet-tile,
		.leaflet-container .leaflet-tile-pane,
		.leaflet-container .leaflet-image-layer
		{
			background-color: darken-map-strength !important;
		}
	}
}