Skip to content

sv Custom Themes

R3d edited this page Dec 2, 2026 · 1 revision

Egna teman

Den här sidan är en översättning. Hjälp till att förbättra den: redigera på GitHub

För att skapa ett eget tema för Woggle lägger du bara en temafil (med filändelsen .toml) i mappen themes i konfigurationsmappen.

# Consider we have a theme called "foobar.toml" inside the themes folder.
# Theme is a root key, so it has to be placed before any sections in your config file.

theme = "foobar"
# .. rest of the configuration file.

Tip

Woggle har en inbyggd temaeditor som gör det enklare att skapa teman

Varje "<color string>" ska vara en giltig hexfärg. Om den är ogiltig, eller om nyckeln tas bort, blir färgen genomskinlig.

Varje <text style> ska vara antingen en giltig hexfärgssträng ("<color string>"), eller en tabell ("{ color = "<color string>", font_style = "<font style string>" }") med värden för color (giltig hexfärgssträng) och font_style (giltig teckenstilssträng: "normal", "italic", "bold" eller "italic-bold").

Ett eget tema är uppbyggt så här:

[general]
background = "<color string>"
border = "<color string>"
horizontal_rule = "<color string>"
horizontal_rule_text = "<color string>"
scrollbar = "<color string>"
unread_indicator = "<color string>"
highlight_indicator = "<color string>"

[text]
primary = <text style>
secondary = <text style>
tertiary = <text style>
success = <text style>
error = <text style>
warning = <text style>
info = <text style>
debug = <text style>
trace = <text style>

[buttons.primary]
background = "<color string>"
background_hover = "<color string>"
background_selected = "<color string>"
background_selected_hover = "<color string>"
border_active = "<color string>"

[buttons.secondary]
background = "<color string>"
background_hover = "<color string>"
background_selected = "<color string>"
background_selected_hover = "<color string>"
border_active = "<color string>"

[buffer]
action = <text style>
background = "<color string>"
background_text_input = "<color string>"
background_title_bar = "<color string>"
border = "<color string>"
border_selected = "<color string>"
code = <text style>
focus_border = "<color string>"
focus_background = "<color string>"
highlight = "<color string>"
nickname = <text style>
nickname_offline = <text style>
self_message = <text style>
selection = "<color string>"
timestamp = <text style>
topic = <text style>
url = <text style>
backlog_rule = "<color string>"
backlog_rule_text = "<color string>"
date_rule = "<color string>"
date_rule_text = "<color string>"

[buffer.server_messages]
# Set below if you want to have a unique color for each.
# Otherwise simply set `default` to use that for all server messages.
#
# away = <text style>
# change_host = <text style>
# change_mode = <text style>
# change_nick = <text style>
# change_topic = <text style>
# invite = <text style>
# join = <text style>
# join_topic = <text style>
# kick = <text style>
# part = <text style>
# quit = <text style>
# request_topic = <text style>
# monitored_online = <text style>
# monitored_offline = <text style>
# standard_reply_fail = <text style>
# standard_reply_warn = <text style>
# standard_reply_note = <text style>
# wallops = <text style>
default = <text style>

[formatting]
# Set below if you want override the default color used in formatted messages.
#
# white = "<color string>"
# black = "<color string>"
# blue = "<color string>"
# green = "<color string>"
# red = "<color string>"
# brown = "<color string>"
# magenta = "<color string>"
# orange = "<color string>"
# yellow = "<color string>"
# lightgreen = "<color string>"
# cyan = "<color string>"
# lightcyan = "<color string>"
# lightblue = "<color string>"
# pink = "<color string>"
# grey = "<color string>"
# lightgrey = "<color string>"

Mer information om färger i formatering finns i guiden för textformatering.

Note

Standardtemats toml-fil, Ferra, kan du se på GitHub.

Base16

Färgschemaramverket base16 innehåller hundratals färgscheman som är byggda med 16 färger. De här färgschemana är kompilerade för Woggle i repot 4e554c4c/base16-halloy.

För att använda de här temana laddar du ner themes.tar.gz från den senaste releasen och packar upp den i mappen themes i Woggles konfigurationsmapp. Sedan kan du aktivera teman ett och ett i config.toml.

Exempel

# Static
theme = "base16-gruvbox-dark-hard"

Clone this wiki locally