-
Notifications
You must be signed in to change notification settings - Fork 1.1k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Updated styles and drules to store colors section #5378
Conversation
Нужен пробел после двоеточия. Также, хорошо бы разделить атрибуты на общие для тёмного и светлого стилей (в |
Пробел - ладно, могу поставить. Все остальное дело настройки стиля, который будут делать специально обученные люди. |
@Zverik PTAL |
TrafficG1-color: #E63C37; | ||
TrafficG2-color: #E63C37; | ||
TrafficG3-color: #FAB423; | ||
TrafficG3-opacity: 0.5; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Почему G3
здесь и выше — единственный цвет с прозрачностью?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Это значение не используется как прозрачность. Альфаканал цветов трафика кодирует цвет стрелки направления при рендеринге. У этого цвета особенная стрелка
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Ох. Тогда сделай, пожалуйста, две переменные, типа @arrow_forward: 0.5; @arrow_backward: 1;
и используй их.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
тогда уж arrow_light, arrow_dark.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@Zverik done
ec73bda
to
f3a50ac
Compare
Я дошёл до |
@therearesomewhocallmetim посмотри и замёржи плз |
color { | ||
name: "RoadShieldGreenText" | ||
value: 16777215 | ||
} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Для того скрипта, который уже есть, было бы гораздо удобнее, если бы элемент, в котором хранится значение цвета, назывался бы color, а те элементы, которые не содержат значение цвета, не назывались бы color. Предлагаю что-нибудь типа:
palette {
color_element {
name: "SomeGoodName"
color: 1234567
}
...
}
Варианты:
Выбрали value. |
No description provided.