В данном разделе речь пойдет о стилизации иконок "скопировать код". Я реализовал 3 состояния. Это обычное состояние, состояние, когда произошла ошибка во время копирования кода в буфер обмена, и состояние когда код успешно скопирован в буфер обмена. Для всех этих состояний у меня есть 3 разные иконки. Здесь будет описано как менять цвет этих иконок. Если вы через слоты вставите свои картинки, то данный блок вам не поможет. У меня эти иконки реализованы через SVG, я просто меняю их "fill".
In this section, we will talk about the styling of the "copy code" icons. I have implemented 3 states. This is the normal state, the state when an error occurred while copying the code to the clipboard, and the state when the code was successfully copied to the clipboard. I have 3 different icons for all these states. Here you will learn how to change the color of these icons. If you insert your pictures through the slots, then this block will not help you. I have these icons implemented via SVG, I just change them to "fill".
--cm-icon-color - данная CSS переменная отвечает за цвет иконки "скопировать код".
--cm-icon-color - this CSS variable is responsible for the color of the "copy code" icon.
--cm-icon-error-color - данная CSS переменная отвечает за цвет иконки "скопировать код", если произошла ошибка.
--cm-icon-error-color - this CSS variable is responsible for the color of the "copy code" icon if an error has occurred.
--cm-icon-is-copy-color - данная CSS переменная отвечает за цвет иконки "скопировать код", когда код успешно скопирован в буфер обмена.
--cm-icon-is-copy-color - this CSS variable is responsible for the color of the "copy code" icon when the code has been successfully copied to the clipboard.