@include icon-black-white('reply', 'spreed', 1);
@include icon-black-white('clip-add-file', 'spreed', 1);
@include icon-black-white('menu-people', 'spreed', 1);
@include icon-black-white('no-password', 'spreed', 1);
@include icon-black-white('share-window', 'spreed', 1);
@include icon-black-white('clip-add-file', 'spreed', 1);
@include icon-black-white('bell-outline', 'spreed', 1);
@include icon-black-white('emoji-smile', 'spreed', 1);
@include icon-black-white('lobby', 'spreed', 1);
@include icon-black-white('text', 'filetypes', 1, true);
@include icon-black-white('promoted-view', 'spreed', 1);
@include icon-black-white('grid-view', 'spreed', 1);

.app-talk,
.talk-modal,
.talk-sidebar-callview,
#talk-panel,
#talk-sidebar,
#call-container,
.talkChatTab {
	// We always want to use the white icons, this is why we don't use var(--color-white) here.
	.icon-public {
		background-image: url(icon-color-path('public', 'actions', 'fff', 1, true));
	}
	.icon-contacts {
		background-image: url(icon-color-path('contacts', 'places', 'fff', 1, true));
	}
	.icon-password {
		background-image: url(icon-color-path('password', 'actions', 'fff', 1, true));
	}
	.icon-file {
		background-image: url(icon-color-path('text', 'filetypes', 'fff', 1, true));
	}
	.icon-mail {
		background-image: url(icon-color-path('mail', 'actions', 'fff', 1, true));
	}
	.icon-changelog {
		background-image: url('../img/changelog.svg');
	}

	// "forced-white" needs to be included in the class name as the UserBubble
	// does not accept several classes.
	.icon-group-forced-white {
		background-image: url(icon-color-path('group', 'actions', 'fff', 1, true));
	}
	.icon-user-forced-white {
		background-image: url(icon-color-path('user', 'actions', 'fff', 1, true));
	}

	&.in-call {
		.app-navigation-toggle,
		.app-content .action-item__menutoggle {
			color: #ffffff;
			filter: drop-shadow(1px 1px 4px var(--color-box-shadow));
		}
	}

	.forced-white {
		filter: drop-shadow(1px 1px 4px var(--color-box-shadow));

		&.icon-menu-people {
			background-image: url(icon-color-path('menu-people', 'spreed', 'fff', 1));
		}
		&.icon-promoted-view {
			background-image: url(icon-color-path('promoted-view', 'spreed', 'fff', 1));
		}
		&.icon-grid-view {
			background-image: url(icon-color-path('toggle-pictures', 'actions', 'fff', 1, true));
		}
		&.icon-screen {
			background-image: url(icon-color-path('screen', 'actions', 'fff', 1, true));
		}
		&.icon-screen-off {
			background-image: url(icon-color-path('screen-off', 'actions', 'fff', 1, true));
		}
	}

	.icon-favorite {
		/* Show favorite icon in yellow instead of default black. */
		@include icon-color('star-dark', 'actions', 'FC0', 1, true);
	}

	.icon-active-call {
		/* Show red camera icon for ongoing calls. */
		@include icon-color('video', 'actions', 'E9322D', 1, true);
	}

	.icon-start-call {
		background-image: url(icon-color-path('video', 'actions', $color-primary-text, 1, true));
	}

	.icon-incoming-call {
		background-image: url(icon-color-path('video', 'actions', 'fff', 1, true));
	}

	.icon-leave-call {
		background-image: url(icon-color-path('video-off', 'actions', 'fff', 1, true));
	}

	// Patch material design icons' span wrong height
	.material-design-icon {
		display: contents;
	}
}

.popover.vue-popover-theme.open {
	.icon-delete-critical {
		@include icon-color('delete', 'actions', $color-error, 1, true);
		&:hover,
		&:focus {
			filter: initial;
		}
	}
}

// The atwho panel is a direct child of the body, so it is not affected by
// .app-Talk rules above.
.talk.candidate-mentions.atwho-panel {
	// "forced-white" needs to be included in the class name as the Avatar does
	// not accept several classes.
	.icon-group-forced-white {
		background-image: url(icon-color-path('group', 'actions', 'fff', 1, true));
	}
}

.app-files {
	// Needed to use white color also in dark mode.
	.app-sidebar__close.forced-white {
		color: #ffffff;
	}
}
