Colors on Linux and Mac default to B&W for now #1

Open
opened 1 year ago by hiiamboris · 3 comments
hiiamboris commented 1 year ago (Migrated from gitlab.com)
Owner

This is known. Mac backend is low priority, and GTK one is not actively developed by the Red Team, so there's a number of issues that will be there until some champion fixes them.

One of the issues is red/red#4740: these backends does not fill system/view/metrics/colors map from the OS data. So I cannot know what colors are used in the OS.

And these colors need to be accounted for in the font used, and font cannot be recreated often because it's not garbage collected. So font is initialized on startup only, along with the colors.

These lines in styles.red file initialize the colors:
https://gitlab.com/hiiamboris/red-spaces/-/blob/master/styles.red#L13-15

Workaround for now is to define these colors yourself and reinclude the styles.red:

system/view/metrics/colors/text: purple
system/view/metrics/colors/panel: cyan
#include %red-spaces/styles.red

Or to define them before including %everything.red:

system/view/metrics/colors: make map! reduce ['text purple 'panel cyan]
#include %red-spaces/everything.red
This is known. Mac backend is low priority, and GTK one is not actively developed by the Red Team, so there's a number of issues that will be there until some champion fixes them. One of the issues is [red/red#4740](https://github.com/red/red/issues/4740): these backends does not fill `system/view/metrics/colors` map from the OS data. So I *cannot know* what colors are used in the OS. And these colors need to be accounted for in the font used, and font cannot be recreated often because it's not garbage collected. So font is initialized on startup only, along with the colors. These lines in `styles.red` file initialize the colors: https://gitlab.com/hiiamboris/red-spaces/-/blob/master/styles.red#L13-15 Workaround for now is to define these colors yourself and *reinclude* the `styles.red`: ``` system/view/metrics/colors/text: purple system/view/metrics/colors/panel: cyan #include %red-spaces/styles.red ``` Or to define them *before* including `%everything.red`: ``` system/view/metrics/colors: make map! reduce ['text purple 'panel cyan] #include %red-spaces/everything.red ```
hiiamboris commented 1 year ago (Migrated from gitlab.com)
Owner

changed the description

changed the description
hiiamboris commented 1 year ago (Migrated from gitlab.com)
Owner

changed title from Colors on Linux default to B&W for now to Colors on Linux {+and Mac +}default to B&W for now

changed title from **Colors on Linux default to B&W for now** to **Colors on Linux {+and Mac +}default to B&W for now**
hiiamboris commented 1 year ago (Migrated from gitlab.com)
Owner

changed the description

changed the description
Sign in to join this conversation.
No Label
No Milestone
No project
No Assignees
1 Participants
Notifications
Due Date

No due date set.

Dependencies

No dependencies set.

Reference: hiiamboris/red-spaces#1
Loading…
There is no content yet.