Skip to content
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

Use 256 colors by default #1920

Closed
flashcode opened this issue Apr 26, 2023 · 0 comments
Closed

Use 256 colors by default #1920

flashcode opened this issue Apr 26, 2023 · 0 comments
Assignees
Labels
feature New feature request
Milestone

Comments

@flashcode
Copy link
Member

flashcode commented Apr 26, 2023

Feature description

WeeChat should have default colors using the 256-color palette, and let the user enter these colors, even if the terminal supports less colors.

If the terminal supports less colors, WeeChat must use the nearest color available (by computing RGB difference).

Default value must be updated for the following color options:

Option Old default New default RGB
fset.color.description default 242 #6c6c6c
fset.color.description_selected white default #808080
fset.color.line_marked_bg1 default 17 #00005f
fset.color.line_marked_bg2 default 17 #00005f
fset.color.line_selected_bg1 blue 24 #005f87
fset.color.line_selected_bg2 red 24 #005f87
fset.color.name_changed brown 185 #d7d75f
fset.color.type green 138 #af8787
fset.color.type_selected lightgreen 216 #ffaf87
fset.color.value cyan 38 #00afd7
fset.color.value_changed brown 185 #d7d75f
fset.color.value_selected lightcyan 159 #afffff
irc.color.reason_quit default 244 #808080
irc.color.topic_new white 36 #00af87
irc.color.topic_old default 244 #808080
logger.color.backlog_end default 246 #949494
logger.color.backlog_line default 246 #949494
script.color.status_autoloaded cyan 39 #00afff
script.color.text_bg_selected red 24 #005f87
script.color.text_date default 65 #5f875f
script.color.text_date_selected white 50 #00ffd7
script.color.text_delimiters default 240 #585858
script.color.text_description default 249 #b2b2b2
script.color.text_extension default 242 #6c6c6c
script.color.text_extension_selected white 248 #a8a8a8
script.color.text_name cyan 73 #5fafaf
script.color.text_name_selected lightcyan 51 #00ffff
script.color.text_version magenta 180 #d7af87
script.color.text_version_loaded default 246 #949494
script.color.text_version_selected lightmagenta 224 #ffd7d7
weechat.bar.status.color_bg blue 234 #1c1c1c
weechat.bar.status.color_bg_inactive darkgray 232 #080808
weechat.bar.title.color_bg blue 234 #1c1c1c
weechat.bar.title.color_bg_inactive darkgray 232 #080808
weechat.color.chat_delimiters green 22 #005f00
weechat.color.chat_highlight_bg magenta 124 #af0000
weechat.color.chat_inactive_window default 240 #585858
weechat.color.chat_nick_offline default 242 #6c6c6c
weechat.color.chat_nick_offline_highlight_bg blue 17 #00005f
weechat.color.chat_prefix_buffer brown 180 #d7af87
weechat.color.chat_prefix_suffix green 24 #005f87
weechat.color.emphasized_bg magenta 54 #5f0087
weechat.color.nicklist_away cyan 240 #585858
weechat.color.separator blue 236 #303030

In addition, the default value of these string options are changed:

  • buflist.format.buffer_current: ${color:,blue}${format_buffer} to ${color:,17}${format_buffer}
  • fset.format.option2: ${color:darkgray} to ${color:244}
  • weechat.color.chat_nick_colors: cyan,magenta,green,brown,lightblue,default,lightcyan,lightmagenta,lightgreen,blue to cyan,magenta,green,brown,lightblue,lightcyan,lightmagenta,lightgreen,31,35,38,40,49,63,70,80,92,99,112,126,130,138,142,148,160,162,167,169,174,176,178,184,186,210,212,215,248
  • weechat.look.prefix_suffix: | to (U+2502: box drawings: light vertical)

Before (WeeChat 3.8):

image

After changes:

image

@flashcode flashcode added feature New feature request in progress Someone is working on this issue labels Apr 26, 2023
@flashcode flashcode added this to the 4.0.0 milestone Apr 26, 2023
@flashcode flashcode self-assigned this Apr 26, 2023
flashcode added a commit that referenced this issue Apr 26, 2023
flashcode added a commit that referenced this issue Apr 26, 2023
Default value of option weechat.color.status_name_tls is set to white instead
of lightgreen.

Now all servers/channels connected with TLS are white, and those without TLS
are lightmagenta.
flashcode added a commit that referenced this issue Apr 26, 2023
…1920)

Default values changed:

- weechat.bar.status.color_bg: blue -> 234
- weechat.bar.status.color_bg_inactive: darkgray -> 232
- weechat.bar.title.color_bg: blue -> 234
- weechat.bar.title.color_bg_inactive: darkgray -> 232
flashcode added a commit that referenced this issue Apr 26, 2023
Default value changed:

- weechat.color.separator: blue -> 236
flashcode added a commit that referenced this issue Apr 26, 2023
Default value changed:

- buflist.format.buffer_current: "${color:,blue}${format_buffer}" ->
  "${color:,17}${format_buffer}"
flashcode added a commit that referenced this issue Apr 26, 2023
Default values changed:

- weechat.look.prefix_suffix: "|" -> "│"
- weechat.color.chat_prefix_suffix: green -> 24
flashcode added a commit that referenced this issue Apr 26, 2023
Default values changed:

- fset.color.description: default -> 242
- fset.color.description_selected: white -> default
- fset.color.line_marked_bg1: default -> 17
- fset.color.line_marked_bg2: default -> 17
- fset.color.line_selected_bg1: blue -> 24
- fset.color.line_selected_bg2: red -> 24
- fset.color.name_changed: brown -> 185
- fset.color.type: green -> 138
- fset.color.type_selected: lightgreen -> 216
- fset.color.value: cyan -> 38
- fset.color.value_changed: brown -> 185
- fset.color.value_selected: lightcyan -> 80
- fset.format.option2: ${color:darkgray} -> ${color:244}
flashcode added a commit that referenced this issue Apr 26, 2023
Default values changed:

- script.color.status_autoloaded: cyan -> 39
- script.color.text_bg_selected: red -> 24
- script.color.text_date: default -> 65
- script.color.text_date_selected: white -> 50
- script.color.text_delimiters: default -> 240
- script.color.text_description: default -> 249
- script.color.text_extension: default -> 242
- script.color.text_extension_selected: white -> 248
- script.color.text_name: cyan -> 73
- script.color.text_name_selected: lightcyan -> 51
- script.color.text_version: magenta -> 180
- script.color.text_version_loaded: default -> 246
- script.color.text_version_selected: lightmagenta -> 224
flashcode added a commit that referenced this issue Apr 26, 2023
Default values changed:

- logger.color.backlog_end: default -> 246
- logger.color.backlog_line: default -> 246
flashcode added a commit that referenced this issue Apr 26, 2023
Default values changed:

- weechat.color.chat_delimiters: green -> 22
- weechat.color.chat_highlight_bg: magenta -> 124
- weechat.color.chat_inactive_window: default -> 240
- weechat.color.chat_nick_colors: add many colors
- weechat.color.chat_nick_offline: default -> 242
- weechat.color.chat_nick_offline_highlight_bg: blue -> 17
- weechat.color.chat_prefix_buffer: brown -> 180
- weechat.color.emphasized_bg: magenta -> 54
- weechat.color.nicklist_away: cyan -> 240
flashcode added a commit that referenced this issue Apr 26, 2023
Default values changed:

- irc.color.reason_quit: default -> 244
- irc.color.topic_new: white -> 36
- irc.color.topic_old: default -> 244
flashcode added a commit that referenced this issue Apr 26, 2023
@flashcode flashcode removed the in progress Someone is working on this issue label Apr 26, 2023
flashcode added a commit that referenced this issue May 30, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
feature New feature request
Projects
None yet
Development

No branches or pull requests

1 participant