<commit_before>/** Calculate luma as it is also used in OCA\Theming\Util::calculateLuma */
@function luma($c) {
	$-local-red: red(rgba($c, 1.0));
	$-local-green: green(rgba($c, 1.0));
	$-local-blue: blue(rgba($c, 1.0));

	@return (0.2126 * $-local-red  + 0.7152 * $-local-green + 0.0722 * $-local-blue) / 255;
}

.nc-theming-main-background {
	background-color: $color-primary;
}

.nc-theming-main-text {
	color: $color-primary-text;
}

.nc-theming-contrast {
	color: $color-primary-text;
}

@if (luma($color-primary) > 0.6) {
	.searchbox input[type="search"] {
		background: transparent url('../../../core/img/actions/search.svg') no-repeat 6px center;
	}
	#contactsmenu .icon-contacts {
		background-image: url('../../../core/img/places/contacts-dark.svg');
	}
	#settings .icon-settings-white {
		background-image: url('../../../core/img/actions/settings-dark.svg');
	}
	#appmenu .icon-more-white {
		background-image: url('../../../core/img/actions/more.svg');
	}

	#body-login {

		input,
		#alternative-logins li a {
			border: 1px solid nc-lighten($color-primary-text, 50%);
		}
		input.primary,
		#alternative-logins li a {
			background-color: $color-primary;
		}
		a,
		label,
		p,
		#alternative-logins legend {
			color: $color-primary-text !important;
		}
		input[type='checkbox'].checkbox--white + label:before {
			border-color: nc-darken($color-primary-element, 40%) !important;
		}
		input[type='checkbox'].checkbox--white:not(:disabled):not(:checked) + label:hover:before,
		input[type='checkbox'].checkbox--white:focus + label:before {
			border-color: nc-darken($color-primary-element, 30%) !important;
		}
		input[type='checkbox'].checkbox--white:checked + label:before {
			border-color: nc-darken($color-primary-element, 30%) !important;
			background-image: url('../../../core/img/actions/checkbox-mark.svg');
			background-color: nc-darken($color-primary-element, 30%) !important;
		}
	}
}<commit_msg>Fix preview when theming changes invertion of icons<commit_after>/** Calculate luma as it is also used in OCA\Theming\Util::calculateLuma */
@function luma($c) {
	$-local-red: red(rgba($c, 1.0));
	$-local-green: green(rgba($c, 1.0));
	$-local-blue: blue(rgba($c, 1.0));

	@return (0.2126 * $-local-red  + 0.7152 * $-local-green + 0.0722 * $-local-blue) / 255;
}

.nc-theming-main-background {
	background-color: $color-primary;
}

.nc-theming-main-text {
	color: $color-primary-text;
}

.nc-theming-contrast {
	color: $color-primary-text;
}

@if (luma($color-primary) > 0.6) {
	#appmenu img,
	#appmenu image {
		filter: invert(1);
	}
	.searchbox input[type="search"] {
		background: transparent url('../../../core/img/actions/search.svg') no-repeat 6px center;
	}
	#contactsmenu .icon-contacts {
		background-image: url('../../../core/img/places/contacts-dark.svg');
	}
	#settings .icon-settings-white {
		background-image: url('../../../core/img/actions/settings-dark.svg');
	}
	#appmenu .icon-more-white {
		background-image: url('../../../core/img/actions/more.svg');
	}

	#body-login {

		input,
		#alternative-logins li a {
			border: 1px solid nc-lighten($color-primary-text, 50%);
		}
		input.primary,
		#alternative-logins li a {
			background-color: $color-primary;
		}
		a,
		label,
		p,
		#alternative-logins legend {
			color: $color-primary-text !important;
		}
		input[type='checkbox'].checkbox--white + label:before {
			border-color: nc-darken($color-primary-element, 40%) !important;
		}
		input[type='checkbox'].checkbox--white:not(:disabled):not(:checked) + label:hover:before,
		input[type='checkbox'].checkbox--white:focus + label:before {
			border-color: nc-darken($color-primary-element, 30%) !important;
		}
		input[type='checkbox'].checkbox--white:checked + label:before {
			border-color: nc-darken($color-primary-element, 30%) !important;
			background-image: url('../../../core/img/actions/checkbox-mark.svg');
			background-color: nc-darken($color-primary-element, 30%) !important;
		}
	}
} @else {
	  #appmenu img,
	  #appmenu image {
		  filter: none;
	  }
}
{'fraction_non_alphanumeric': 0.2019925280199253, 'fraction_numerical': 0.019178082191780823, 'mean_word_length': 3.6320645905420994, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 5, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '2462742', 'n_tokens_mistral': 1612, 'n_tokens_neox': 1457, 'n_words': 242}