1
0
mirror of https://github.com/weechat/weechat.git synced 2026-07-06 17:53:13 +02:00

Dynamically allocate color pairs

This commit introduces major changes in 256 colors support:
- extended colors can be used without being added with command "/color add"
- background color is now allowed for nick colors (using slash separator)
This commit is contained in:
Sebastien Helleu
2011-01-31 19:03:30 +01:00
parent 773effbb3a
commit ccb08945a1
49 changed files with 2134 additions and 1974 deletions
+2 -2
View File
@@ -70,8 +70,6 @@
| weechat | buffers_plugins_names | Liste der Buffer (inkl. der Erweiterungen)
| weechat | color_pairs | Farbpaar
| weechat | commands | Befehle (WeeChat und Erweiterungen)
| weechat | config_files | Konfigurationsdateien
@@ -94,6 +92,8 @@
| weechat | nicks | Nicks in Nickliste des aktuellen Buffers
| weechat | palette_colors | palette colors
| weechat | plugins_commands | Befehle, definiert durch Erweiterungen
| weechat | plugins_names | Liste der Erweiterungen
+20 -22
View File
@@ -99,26 +99,23 @@
/buffer +1
........................................
• *`/color`* `[add pair [alias] [fg,bg]] | [del pair] | switch`::
• *`/color`* `[add color alias] | [del color] | reset`::
........................................
erstellt benutzerdefinierte Farben und stellt die Farbpalette dar
define color aliases and display palette of colors
add: fügt ein Farbpaar hinzu
del: entfernt ein Farbpaar
switch: wechselt die Farben von WeeChat/Terminal
pair: Wert für Farbpaar (>= 1)
alias: Alias für Farbe (zum Beispiel: "orange")
fg,bg: Vordergrund- und Hintergrundfarbe (-1 setzt für den Vorder- oder Hintergrund die standard Terminalfarbe)
add: add an alias for a color
del: delete an alias
color: color number (>= 1, max depends on terminal, commonly 63 or 255)
alias: alias name for color (for example: "orange")
reset: reset all color pairs (useful when no more pairs are available)
Ohne Angabe von Argumenten öffnet der Befehl einen neuen Buffer, in welchem die Farbpalette dargestellt wird.
Without argument, this command displays colors in a new buffer.
Beispiele:
fügt die Farbe 214 mit dem Alias "orange" hinzu:
Examples:
add alias "orange" for color 214:
/color add 214 orange
fügt die Farbe 250 mit dem Alias Orange auf Blau hinzu:
/color add 250 214,4 orange_blau
löscht die Farbe 214:
delete color 214:
/color del 214
........................................
@@ -131,18 +128,19 @@
Befehl: auszuführender Befehl (es wird automatisch ein '/' vorangestellt, falls dieser nicht angegeben wurde)
........................................
• *`/debug`* `[list | set plugin level | dump [plugin] | buffer | windows | term]`::
• *`/debug`* `[list | set plugin level | dump [plugin] | buffer | windows | term | color]`::
........................................
Debug-Kontrolle für Hauptprogramm und/oder Erweiterung
set: setzt den Level der Protokollierung für eine Erweiterung
plugin: Name der Erweiterung ("core" für den WeeChat Kern)
level: Debuglevel der Erweiterung (0 = deaktiviert das Debug)
dump: Speicherabbild in die WeeChat Protokolldatei schreiben (wie bei einem Programmabsturz)
buffer: speichert den Bufferinhalt als hexadezimale Ausgabe in die Protokolldatei
windows: zeigt die Fensterstruktur an
term: gibt Informationen über das Terminal und verfügbare Farben aus.
set: set log level for plugin
plugin: name of plugin ("core" for WeeChat core)
level: debug level for plugin (0 = disable debug)
dump: save memory dump in WeeChat log file (same dump is written when WeeChat crashes)
buffer: dump buffer content with hexadecimal values in log file
windows: display windows tree
term: display infos about terminal and available colors
color: display infos about current color pairs
........................................
• *`/filter`* `[list] | [enable|disable|toggle [name]] | [add name plugin.buffer tags regex] | [del name|-all]`::
+1 -1
View File
@@ -49,7 +49,7 @@
** Werte: ein Farbname (Standardwert: `lightcyan`)
* *weechat.color.chat_nick_colors*
** Beschreibung: `Textfarbe für Nicks (durch Kommata getrennte Liste von Farben)`
** Beschreibung: `text color for nicks (comma separated list of colors, background is allowed with format: "fg/bg", for example: "blue/red")`
** Typ: Zeichenkette
** Werte: beliebige Zeichenkette (Standardwert: `"cyan,magenta,green,brown,lightblue,default,lightcyan,lightmagenta,lightgreen,blue"`)
+6 -1
View File
@@ -265,7 +265,12 @@ Umgebungsvariable durchgeführt werden, ohne das WeeChat neu gestartet werden mu
/upgrade
----------------------------------------
Mit dem Befehl `/color` können die Farben ganz einfach in WeeChat angepasst werden.
// TRANSLATION MISSING
For version 0.3.4, you must use command `/color` to add new colors.
// TRANSLATION MISSING
For versions > = 0.3.5, you can use any color number in options (optional: you
can add color aliases with command `/color`).
Weiterführende Informationen zum Farbmanagement erhält man in der Benutzeranleitung.
+31 -46
View File
@@ -937,61 +937,46 @@ Basisfarben in WeeChat sind:
| white | weiß
|========================================
[[colors_palette]]
Palette
^^^^^^^
// TRANSLATION MISSING
[[colors_extended]]
Extended colors
^^^^^^^^^^^^^^^
Gemäß der jeweiligen Terminal-Einstellung werden 64 oder 256 Farbpaare
durch WeeChat definiert. Diese bestehen aus einer Kombination von
Vordergrund- und Hintergrundfarben.
WeeChat dynamically allocates color pairs when colors are used on screen (to
display buffers and bars).
* für 64 Paare: 8 Vordergrundfarben * 8 Hintergrundfarben (dunkle Farben)
* für 256 Paare: 16 Vordergrundfarben * 16 Hintergrundfarben (jeweils 8 dunkle und
8 helle Farben)
In addition to basic colors, you can use a color number between 1 and the limit
of your terminal.
Mit dem Befehl `/color` können die Standardfarben angezeigt werden (im Buffer kann
mittels 'alt+c' zwischen den WeeChat und der Terminal Farbpalette gewechselt werden).
Use command `/color` to see current colors and limits. With 'alt+c' you can
temporarily switch to terminal colors to choose a color.
Farbpaarungen (ein Paar besteht aus einer Vordergrund- und einer Hintergrundfarbe)
können mit dem Befehl `/color` angepasst werden. Es wird dazu in der Konfigurationsdatei
'weechat.conf', in der Sektion 'palette' eine entsprechende Option erstellt.
Für jede definierte Farbe können folgende Parameter festgelegt werden:
* Vordergrund- und Hintergrund, zu nutzendes Format "fg,bg": Farbe für den Text und den
Hintergrund. Standardmäßig wird für den Hintergrund die voreingestellte Hintergrundfarbe (-1)
verwendet.
* alias: der Farbpaarung kann ein Name zugeordnet werden, damit man diesen Namen zur einfacheren
Nutzung in den Farboptionen verwenden kann.
Ein Beispiel, um die Farbpaarungen 225 bis 240 mit den Farben blau, türkis,
grün, gelb, orange, rot, rosa, violett zu definieren:
For example if you want to display time in orange in buffer, do:
----------------------------------------
/color add 225 18,-1
/color add 226 20,-1
/color add 227 27,-1
/color add 228 39,-1
/color add 229 51,-1
/color add 230 49,-1
/color add 231 47,-1
/color add 232 82,-1
/color add 233 154,-1
/color add 234 226,-1
/color add 235 214,-1
/color add 236 202,-1
/color add 237 196,-1
/color add 238 199,-1
/color add 239 201,-1
/color add 240 176,-1
/set weechat.color.chat_time 214
----------------------------------------
siehe `/help color` für weitere Beispiele:
Or if you want a very dark green background for status bar:
[IMPORTANT]
Farben die manuell definiert werden, überschreiben die von WeeChat genutzten
Standardfarben. Deshalb sollten Farbpaarungen nur redefiniert werden falls
man diese Farbe nicht in WeeChat nutzt.
----------------------------------------
/set weechat.bar.status.color_bg 22
----------------------------------------
// TRANSLATION MISSING
[[colors_aliases]]
Alises for colors
^^^^^^^^^^^^^^^^^
You can add color aliases with command `/color add` and then use this alias
in any color option.
For example:
----------------------------------------
/color add 214 orange
/set weechat.color.chat_delimiters orange
----------------------------------------
[[plugins]]
+2 -2
View File
@@ -70,8 +70,6 @@
| weechat | buffers_plugins_names | names of buffers (including plugins names)
| weechat | color_pairs | color pairs
| weechat | commands | commands (weechat and plugins)
| weechat | config_files | configuration files
@@ -94,6 +92,8 @@
| weechat | nicks | nicks in nicklist of current buffer
| weechat | palette_colors | palette colors
| weechat | plugins_commands | commands defined by plugins
| weechat | plugins_names | names of plugins
+9 -11
View File
@@ -99,25 +99,22 @@
/buffer +1
........................................
• *`/color`* `[add pair [alias] [fg,bg]] | [del pair] | switch`::
• *`/color`* `[add color alias] | [del color] | reset`::
........................................
define custom colors and display palette of colors
define color aliases and display palette of colors
add: add a color pair
del: delete a color pair
switch: switch WeeChat/terminal colors
pair: pair number (>= 1)
add: add an alias for a color
del: delete an alias
color: color number (>= 1, max depends on terminal, commonly 63 or 255)
alias: alias name for color (for example: "orange")
fg,bg: foreground and background pair number (-1 for default terminal foreground or background)
reset: reset all color pairs (useful when no more pairs are available)
Without argument, this command displays colors in a new buffer.
Examples:
add color 214 with alias "orange":
add alias "orange" for color 214:
/color add 214 orange
add color 250 with orange on blue:
/color add 250 214,4 orange_blue
delete color 214:
/color del 214
........................................
@@ -131,7 +128,7 @@
command: command to execute (a '/' is automatically added if not found at beginning of command)
........................................
• *`/debug`* `[list | set plugin level | dump [plugin] | buffer | windows | term]`::
• *`/debug`* `[list | set plugin level | dump [plugin] | buffer | windows | term | color]`::
........................................
control debug for core/plugins
@@ -143,6 +140,7 @@
buffer: dump buffer content with hexadecimal values in log file
windows: display windows tree
term: display infos about terminal and available colors
color: display infos about current color pairs
........................................
• *`/filter`* `[list] | [enable|disable|toggle [name]] | [add name plugin.buffer tags regex] | [del name|-all]`::
+1 -1
View File
@@ -49,7 +49,7 @@
** values: a color name (default value: `lightcyan`)
* *weechat.color.chat_nick_colors*
** description: `text color for nicks (comma separated list of colors)`
** description: `text color for nicks (comma separated list of colors, background is allowed with format: "fg/bg", for example: "blue/red")`
** type: string
** values: any string (default value: `"cyan,magenta,green,brown,lightblue,default,lightcyan,lightmagenta,lightgreen,blue"`)
+4 -1
View File
@@ -250,7 +250,10 @@ don't panic! You can change it without restarting, thanks to script 'shell.py':
/upgrade
----------------------------------------
You can use command `/color` for easy setup of colors in WeeChat.
For version 0.3.4, you must use command `/color` to add new colors.
For versions > = 0.3.5, you can use any color number in options (optional: you
can add color aliases with command `/color`).
Please read user's guide for more information about colors management.
+29 -42
View File
@@ -934,57 +934,44 @@ Basic colors in WeeChat are:
| white | white
|========================================
[[colors_palette]]
Palette
^^^^^^^
[[colors_extended]]
Extended colors
^^^^^^^^^^^^^^^
According to your terminal, 64 or 256 pairs are defined by WeeChat, a
combination of foreground with background colors:
WeeChat dynamically allocates color pairs when colors are used on screen (to
display buffers and bars).
* for 64 pairs: 8 foreground colors * 8 background colors (dark colors)
* for 256 pairs: 16 foreground colors * 16 background colors (8 dark colors and
8 light colors)
In addition to basic colors, you can use a color number between 1 and the limit
of your terminal.
Use command `/color` to see default colors (on buffer you can press 'alt+c' to
switch between WeeChat and terminal colors).
Use command `/color` to see current colors and limits. With 'alt+c' you can
temporarily switch to terminal colors to choose a color.
You can override some color pairs (a pair is foreground + background) with
command `/color`, which creates option in section 'palette' of file
'weechat.conf'.
For each color defined, you can specify:
* foreground and background, using format "fg,bg": color for text and
background, by default it is color pair number on default background (-1)
* alias: you can give a name to your color, for easy use in color options
For example, to define pairs 225 to 240 with colors like blue, cyan, green,
yellow, orange, red, pink, purple:
For example if you want to display time in orange in buffer, do:
----------------------------------------
/color add 225 18,-1
/color add 226 20,-1
/color add 227 27,-1
/color add 228 39,-1
/color add 229 51,-1
/color add 230 49,-1
/color add 231 47,-1
/color add 232 82,-1
/color add 233 154,-1
/color add 234 226,-1
/color add 235 214,-1
/color add 236 202,-1
/color add 237 196,-1
/color add 238 199,-1
/color add 239 201,-1
/color add 240 176,-1
/set weechat.color.chat_time 214
----------------------------------------
See `/help color` for other examples.
Or if you want a very dark green background for status bar:
[IMPORTANT]
Colors defined are overriding default WeeChat color pairs, so you should
redefine pair only if you're not using this color in WeeChat.
----------------------------------------
/set weechat.bar.status.color_bg 22
----------------------------------------
[[colors_aliases]]
Alises for colors
^^^^^^^^^^^^^^^^^
You can add color aliases with command `/color add` and then use this alias
in any color option.
For example:
----------------------------------------
/color add 214 orange
/set weechat.color.chat_delimiters orange
----------------------------------------
[[plugins]]
+2 -2
View File
@@ -70,8 +70,6 @@
| weechat | buffers_plugins_names | noms des tampons (incluant les noms d'extensions)
| weechat | color_pairs | paires de couleur
| weechat | commands | commandes (weechat et extensions)
| weechat | config_files | fichiers de configuration
@@ -94,6 +92,8 @@
| weechat | nicks | pseudos dans la liste des pseudos du tampon courant
| weechat | palette_colors | couleurs de la palette
| weechat | plugins_commands | commandes définies par les extensions
| weechat | plugins_names | noms des extensions
+10 -12
View File
@@ -99,25 +99,22 @@
/buffer +1
........................................
• *`/color`* `[add paire [alias] [fg,bg]] | [del paire] | switch`::
• *`/color`* `[add couleur alias] | [del paire] | switch`::
........................................
définir des couleurs personnalisées et afficher la palette des couleurs
définir des alias de couleurs et afficher la palette des couleurs
add: ajouter une paire de couleur
del: supprimer une paire de couleur
switch: basculer entre les couleurs WeeChat et du terminal
paire: numéro de paire (>= 1)
alias: nom d'alias pour la couleur (par exemple: "orange")
fg,bg: numéro de paire pour le texte et le fond (-1 pour la couleur par défaut du terminal pour le texte ou le fond)
add: ajouter une paire de couleur
del: supprimer une paire de couleur
couleur: numéro de couleur (>= 1, le max dépend du terminal, généralement 63 ou 255)
alias: nom d'alias pour la couleur (par exemple: "orange")
reset: réinitialiser toutes les paires de couleurs (pratique quand il n'y a plus de paires disponibles)
Sans paramètre, cette commande affiche les couleurs dans un nouveau tampon.
Exemples:
ajouter la couleur 214 avec l'alias "orange":
ajouter l'alias "orange" pour la couleur 214:
/color add 214 orange
ajouter la couleur 250 avec orange sur bleu:
/color add 250 214,4 orange_bleu
supprimer la couleur 214:
/color del 214
........................................
@@ -131,7 +128,7 @@
commande: commande à exécuter (un '/' est automatiquement ajouté s'il n'est pas trouvé au début de la commande)
........................................
• *`/debug`* `[list | set extension niveau | dump [extension] | buffer | windows | term]`::
• *`/debug`* `[list | set extension niveau | dump [extension] | buffer | windows | term | color]`::
........................................
contrôle du debug pour le coeur/les extensions
@@ -143,6 +140,7 @@
buffer: affiche le contenu du tampon en valeurs hexadécimales dans le fichier log
windows: affiche l'arbre des fenêtres
term: afficher des infos sur le terminal et les couleurs disponibles
color: afficher des infos sur les paires de couleur courantes
........................................
• *`/filter`* `[list] | [enable|disable|toggle [nom]] | [add nom extension.tampon tags regex] | [del nom|-all]`::
+1 -1
View File
@@ -49,7 +49,7 @@
** valeurs: un nom de couleur (valeur par défaut: `lightcyan`)
* *weechat.color.chat_nick_colors*
** description: `couleur du texte pour les pseudos (liste de couleurs séparées par une virgule)`
** description: `couleur du texte pour les pseudos (liste de couleurs séparées par une virgule, un fond est autorisé avec le format: "couleur/fond", par exemple: "blue/red")`
** type: chaîne
** valeurs: toute chaîne (valeur par défaut: `"cyan,magenta,green,brown,lightblue,default,lightcyan,lightmagenta,lightgreen,blue"`)
+6 -2
View File
@@ -260,8 +260,12 @@ ne paniquez pas ! Vous pouvez la changer sans redémarrer, grâce au script
/upgrade
----------------------------------------
Vous pouvez utiliser la commande `/color` pour une configuration facile des
couleurs dans WeeChat.
Pour la version 0.3.4, vous devez utiliser la commande `/color` pour ajouter
des nouvelles couleurs.
Pour les versions > = 0.3.5, vous pouvez utiliser un numéro de couleur dans les
options (facultatif : vous pouvez ajouter des alias de couleurs avec la commande
`/color`).
Merci de lire le guide utilisateur pour plus d'information sur la gestion des
couleurs.
+31 -47
View File
@@ -957,62 +957,46 @@ Les couleurs de base dans WeeChat sont :
| white | white
|========================================
[[colors_palette]]
Palette
^^^^^^^
[[colors_extended]]
Couleurs étendues
^^^^^^^^^^^^^^^^^
Selon votre terminal, 64 ou 256 paires sont définies par WeeChat, une
combinaison des couleurs d'avant-plan avec le fond :
WeeChat alloue dynamiquement les paires de couleurs quand elles sont utilisées
sur l'écran (pour afficher les tampons et les barres).
* pour 64 paires : 8 couleurs d'avant-plan * 8 couleurs de fond (couleurs
sombres)
* pour 256 paires : 16 couleurs d'avant-plan * 16 couleurs de fond (8 couleurs
sombres et 8 couleurs claires)
En plus des couleurs de base, vous pouvez utiliser un numéro de couleur entre 1
et la limite de votre terminal.
Utilisez la commande `/color` pour voir les couleurs par défaut (sur le tampon
vous pouvez appuyer sur 'alt+c' pour basculer entre les couleurs WeeChat et
celles du terminal).
Utilisez la commande `/color` pour voir les couleurs et les limites. Avec la
touche 'alt+c', vous pouvez basculer temporairement vers les couleurs du
terminal pour choisir une couleur.
Vous pouvez écraser des paires de couleur (une paire est un avant-plan + un
fond) avec la commande `/color`, qui créé une option dans la section 'palette'
du fichier 'weechat.conf'.
Pour chaque couleur définie, vous pouvez spécifier :
* avant-plan et fond, en utilisant le format "fg,bg" : couleur pour le texte et
le fond, par défaut c'est la couleur du numéro de paire sur le fond par
défaut (-1)
* alias : vous pouvez donner un nom à la couleur, pour l'utiliser facilement
dans les options de couleurs
Par exemple, pour définir les paires de 225 à 240 avec des couleurs comme le
bleu, cyan, vert, jaune, orange, rouge, rose, pourpre :
Par exemple si vous souhaitez afficher l'heure en orange dans le tampon,
faites :
----------------------------------------
/color add 225 18,-1
/color add 226 20,-1
/color add 227 27,-1
/color add 228 39,-1
/color add 229 51,-1
/color add 230 49,-1
/color add 231 47,-1
/color add 232 82,-1
/color add 233 154,-1
/color add 234 226,-1
/color add 235 214,-1
/color add 236 202,-1
/color add 237 196,-1
/color add 238 199,-1
/color add 239 201,-1
/color add 240 176,-1
/set weechat.color.chat_time 214
----------------------------------------
Voir `/help color` pour d'autres exemples.
Ou si vous voulez un fond vert très foncé pour la barre de statut :
[IMPORTANT]
Les couleurs définies écrasent les paires de couleur WeeChat par défaut, donc
vous ne devriez redéfinir une paire seulement si vous n'utilisez pas cette
couleur dans WeeChat.
----------------------------------------
/set weechat.bar.status.color_bg 22
----------------------------------------
[[colors_aliases]]
Alias pour les couleurs
^^^^^^^^^^^^^^^^^^^^^^^
Vous pouvez ajouter des alias de couleur avec la commande `/color add` puis
utiliser cet alias dans n'importe quelle option de couleur.
Par exemple :
----------------------------------------
/color add 214 orange
/set weechat.color.chat_delimiters orange
----------------------------------------
[[plugins]]
+2 -2
View File
@@ -70,8 +70,6 @@
| weechat | buffers_plugins_names | nomi dei buffer (inclusi i nomi plugin)
| weechat | color_pairs | coppie di colori
| weechat | commands | comandi (weechat e plugin)
| weechat | config_files | file di configurazione
@@ -94,6 +92,8 @@
| weechat | nicks | nick nella lista nick del buffer corrente
| weechat | palette_colors | palette colors
| weechat | plugins_commands | comandi definiti dai plugin
| weechat | plugins_names | nomi dei plugin
+20 -22
View File
@@ -99,26 +99,23 @@
/buffer +1
........................................
• *`/color`* `[add pair [alias] [fg,bg]] | [del pair] | switch`::
• *`/color`* `[add color alias] | [del color] | reset`::
........................................
definisce i colori predefiniti e visualizza la tavolozza dei colori
define color aliases and display palette of colors
add: aggiunge una coppia di colore
del: elimina una coppia di colore
switch: passa tra i colori di WeeChat/terminale
pair: numero della coppia (>= 1)
alias: nome per il colore (ad esempio: "arancio")
fg,bg: numero di coppia per il primo piano e lo sfondo (-1 per il primo piano o sfondo del terminale predefinito)
add: add an alias for a color
del: delete an alias
color: color number (>= 1, max depends on terminal, commonly 63 or 255)
alias: alias name for color (for example: "orange")
reset: reset all color pairs (useful when no more pairs are available)
Senza argomenti, il comando visualizza i colori in un nuovo buffer.
Without argument, this command displays colors in a new buffer.
Esempi:
aggiunge il colore 214 con l'alias "arancio":
Examples:
add alias "orange" for color 214:
/color add 214 orange
aggiunge il colore 250 con arancio su blu:
/color add 250 214,4 arancio_blu
elimina il colore 214:
delete color 214:
/color del 214
........................................
@@ -131,18 +128,19 @@
comando: comando da eseguire (una '/' viene aggiunta automaticamente se non trovata all'inizio del comando)
........................................
• *`/debug`* `[list | set plugin livello | dump [plugin] | buffer | windows | term]`::
• *`/debug`* `[list | set plugin level | dump [plugin] | buffer | windows | term | color]`::
........................................
attiva debug per core/plugin
set: imposta il livello di log per il plugin
plugin: nome del plugin ("core" per il core di WeeChat)
livello: livello di debug per il plugin (0 = disabilita debug)
dump: salva il dump della memoria nel file di log di Weechat (lo stesso dump viene salvato quando WeeChat va in crash)
buffer: esegue il dump del contenuto con valori esadecimali nel file di log
windows: visualizza l'albero delle finestre
term: visualizza informazioni sul terminale e i colori disponibili
set: set log level for plugin
plugin: name of plugin ("core" for WeeChat core)
level: debug level for plugin (0 = disable debug)
dump: save memory dump in WeeChat log file (same dump is written when WeeChat crashes)
buffer: dump buffer content with hexadecimal values in log file
windows: display windows tree
term: display infos about terminal and available colors
color: display infos about current color pairs
........................................
• *`/filter`* `[list] | [enable|disable|toggle [nome]] | [add nome plugin.buffer tag regex] | [del nome|-all]`::
+1 -1
View File
@@ -49,7 +49,7 @@
** valori: un nome colore (valore predefinito: `lightcyan`)
* *weechat.color.chat_nick_colors*
** descrizione: `colore del testo per i nick (elenco separato da virgole di colori)`
** descrizione: `text color for nicks (comma separated list of colors, background is allowed with format: "fg/bg", for example: "blue/red")`
** tipo: stringa
** valori: qualsiasi stringa (valore predefinito: `"cyan,magenta,green,brown,lightblue,default,lightcyan,lightmagenta,lightgreen,blue"`)
+6 -2
View File
@@ -256,8 +256,12 @@ niente panico! È possibile cambiarla senza riavviare, grazie allo script 'shell
/upgrade
----------------------------------------
È possibile utilizzare il comando `/color` per una semplice impostazione
dei colori in WeeChat.
// TRANSLATION MISSING
For version 0.3.4, you must use command `/color` to add new colors.
// TRANSLATION MISSING
For versions > = 0.3.5, you can use any color number in options (optional: you
can add color aliases with command `/color`).
Per favore consultare la guida per l'utente per maggiori informazioni sulla gestione
dei colori.
+32 -45
View File
@@ -951,60 +951,47 @@ I colori base in WeeChat sono:
| white | bianco
|========================================
[[colors_palette]]
Tavolozza
^^^^^^^^^
// TRANSLATION MISSING
[[colors_extended]]
Extended colors
^^^^^^^^^^^^^^^
In base al proprio terminale, vengono definite 64 o 256 coppie da WeeChat,
una combinazione di colori di primo piano con quelli di sfondo:
WeeChat dynamically allocates color pairs when colors are used on screen (to
display buffers and bars).
* per 64 coppie: 8 colori di primo piano * 8 colori di sfondo (colori scuri)
* per 256 coppie: 16 colori di primo piano * 16 colori di sfondo (8 colori scuri
ed 8 colori chiari)
In addition to basic colors, you can use a color number between 1 and the limit
of your terminal.
Usare il comando `/color` per visualizzare i colori predefiniti (nel buffer
è possibile digitare 'alt+c' per passare tra i colori di WeeChat e quelli del
terminale).
Use command `/color` to see current colors and limits. With 'alt+c' you can
temporarily switch to terminal colors to choose a color.
È possibile sovrascrivere alcune coppie di colori (una coppia è costituita
da colore di primo piano + sfondo) con il comando `/color`, che crea un'opzione
nella sezione 'palette' del file 'weechat.conf'.
Per ogni colore definito, si può specificare:
* colore di primo piano e sfondo, con il formato "fg,bg": colore per il testo e
di sfondo, quello predefinito è il numero della coppia del colore su
sfondo predefinito (-1)
* alias: si può dare un nome al proprio colore, per un facile utilizzo nelle opzioni
Ad esempio, per definire le coppie da 225 a 240 con colori come blu, ciano, verde,
giallo, arancione, rosso, rosa, porpora:
For example if you want to display time in orange in buffer, do:
----------------------------------------
/color add 225 18,-1
/color add 226 20,-1
/color add 227 27,-1
/color add 228 39,-1
/color add 229 51,-1
/color add 230 49,-1
/color add 231 47,-1
/color add 232 82,-1
/color add 233 154,-1
/color add 234 226,-1
/color add 235 214,-1
/color add 236 202,-1
/color add 237 196,-1
/color add 238 199,-1
/color add 239 201,-1
/color add 240 176,-1
/set weechat.color.chat_time 214
----------------------------------------
Consultare `/help color` per ulteriori esempi.
Or if you want a very dark green background for status bar:
----------------------------------------
/set weechat.bar.status.color_bg 22
----------------------------------------
// TRANSLATION MISSING
[[colors_aliases]]
Alises for colors
^^^^^^^^^^^^^^^^^
You can add color aliases with command `/color add` and then use this alias
in any color option.
For example:
----------------------------------------
/color add 214 orange
/set weechat.color.chat_delimiters orange
----------------------------------------
[IMPORTANT]
I colori definiti sovrascrivono le coppie di colore predefinite di WeeChat,
per cui si consiglia di ridefinire la coppia solo questo colore non verrà
usato in WeeChat.
[[plugins]]
Plugin
+6 -1
View File
@@ -251,7 +251,12 @@ nie należy panikować! Można to zmienić bez konieczności restartu, za pomoc
/upgrade
----------------------------------------
Możesz użyć komendy `/color` do łatwego dostosowania kolowów w WeeChat.
// TRANSLATION MISSING
For version 0.3.4, you must use command `/color` to add new colors.
// TRANSLATION MISSING
For versions > = 0.3.5, you can use any color number in options (optional: you
can add color aliases with command `/color`).
Więcej informacji na temat zarządzania kolorami można uzyskać w poradniku użytkownika.