Skip to content
Evan Teran edited this page Dec 14, 2020 · 11 revisions

There are 3 built-in themes for edb:

  • System - provides the default look for edb using the window color scheme of your system settings.
  • Dark - a built-in theme that forces all aspects of edb to be in dark mode regardless of your system settings.
  • Light - a built-in theme that forces all aspects of edb to be in light mode regardless of your system settings.

In addition, any .ini files in the themes subdirectory of the config directory (~/.config/codef00.com/themes/) will be available for selection.

Theme files may have any valid filename and are ordinary .ini files, and should have two sections: [Meta] and [Theme]. The "Meta" section allows the author to provide a name for the theme which will be displayed in the Options dialog.

[Meta]
name=My Dark Theme

Next, using the [Theme] section, you can customize nearly any aspect of edb with the following key/value syntax

<object>.<property>=<value>

Valid objects are:

address
alternating_byte
arithmetic
badge
brackets
comma
comparison
constant
data
data_xfer
filling
flow_ctrl
function
logic
non_printing_character
operator
prefix
ptr
register
shift
stack
system
taken_jump

Valid properties for non-"palette" objects are:

foreground
background
weight
italic
underline

Additionally, you can set the application-wide color palette with the following entries:

palette.alternatebase.disabled
palette.alternatebase
palette.base.disabled
palette.base
palette.brighttext.disabled
palette.brighttext
palette.button.disabled
palette.button
palette.buttontext.disabled
palette.buttontext
palette.dark.disabled
palette.dark
palette.highlight.disabled
palette.highlight
palette.highlightedtext.disabled
palette.highlightedtext
palette.light.disabled
palette.light
palette.link.disabled
palette.link
palette.linkvisited.disabled
palette.linkvisited
palette.mid.disabled
palette.mid
palette.midlight.disabled
palette.midlight
palette.shadow.disabled
palette.shadow
palette.text.disabled
palette.text
palette.tooltipbase.disabled
palette.tooltipbase
palette.tooltiptext.disabled
palette.tooltiptext
palette.window.disabled
palette.window
palette.windowtext.disabled
palette.windowtext

NOTES:

You may omit any property, which will simply inherit from the "System" theme for that property.

foreground and background are colors, this is a string which can be anything you can pass to a QColor(const char *) constructor. So, it can take named constants such as "green" or hex color codes like "#00ff00", the special value, "transparent" is also allowed. See the Qt documentation for the full details.

weight is on a scale of 0 to 99. Wher 50 is normal and 75 is bold.

italic and underline are typical boolean values.

Example (this is a complete dark theme for edb):

[Meta]
name=My Dark Theme

[Theme]
address.foreground=#ba86c0
alternating_byte.foreground=grey
arithmetic.background=transparent
arithmetic.foreground=#569cd6
arithmetic.italic=false
arithmetic.underline=false
arithmetic.weight=50
badge.background=blue
badge.foreground=white
brackets.background=transparent
brackets.foreground=#b5cea8
brackets.italic=false
brackets.underline=false
brackets.weight=75
comma.background=transparent
comma.foreground=#b5cea8
comma.italic=false
comma.underline=false
comma.weight=75
comparison.background=transparent
comparison.foreground=#569cd6
comparison.italic=false
comparison.underline=false
comparison.weight=50
constant.background=transparent
constant.foreground=#ce7b48
constant.italic=false
constant.underline=false
constant.weight=50
data.background=transparent
data.foreground=white
data.italic=false
data.underline=false
data.weight=50
data_xfer.background=transparent
data_xfer.foreground=#569cd6
data_xfer.italic=false
data_xfer.underline=false
data_xfer.weight=50
filling.foreground=gray
flow_ctrl.background=transparent
flow_ctrl.foreground=green
flow_ctrl.italic=false
flow_ctrl.underline=false
flow_ctrl.weight=100
function.background=transparent
function.foreground=green
function.italic=false
function.underline=false
function.weight=100
logic.background=transparent
logic.foreground=#569cd6
logic.italic=false
logic.underline=false
logic.weight=50
non_printing_character.foreground=#569cd6
operator.background=transparent
operator.foreground=#ce7b48
operator.italic=false
operator.underline=false
operator.weight=50
palette.alternatebase.disabled=#ff2f3338
palette.alternatebase=#ff31363b
palette.base.disabled=#ff212427
palette.base=#ff232629
palette.brighttext.disabled=#ffffffff
palette.brighttext=#ffffffff
palette.button.disabled=#ff2f3338
palette.button=#ff31363b
palette.buttontext.disabled=#ff6e7275
palette.buttontext=#ffeff0f1
palette.dark.disabled=#ff1b1e21
palette.dark=#ff1d2023
palette.highlight.disabled=#ff2f3338
palette.highlight=#ff3daee9
palette.highlightedtext.disabled=#ff6e7275
palette.highlightedtext=#ffeff0f1
palette.light.disabled=#ff444b51
palette.light=#ff464d54
palette.link.disabled=#ff234257
palette.link=#ff2980b9
palette.linkvisited.disabled=#ff404648
palette.linkvisited=#ff7f8c8d
palette.mid.disabled=#ff292d32
palette.mid=#ff2b3034
palette.midlight.disabled=#ff3a4046
palette.midlight=#ff3c4248
palette.shadow.disabled=#ff141618
palette.shadow=#ff151719
palette.text.disabled=#ff65686a
palette.text=#ffeff0f1
palette.tooltipbase.disabled=#ff31363b
palette.tooltipbase=#ff31363b
palette.tooltiptext.disabled=#ffeff0f1
palette.tooltiptext=#ffeff0f1
palette.window.disabled=#ff2f3338
palette.window=#ff31363b
palette.windowtext.disabled=#ff6e7275
palette.windowtext=#ffeff0f1
prefix.background=transparent
prefix.foreground=#ce7b48
prefix.italic=false
prefix.underline=false
prefix.weight=75
ptr.background=transparent
ptr.foreground=darkGreen
ptr.italic=false
ptr.underline=false
ptr.weight=50
register.background=transparent
register.foreground=darkgreen
register.italic=false
register.underline=false
register.weight=75
shift.background=transparent
shift.foreground=#569cd6
shift.italic=false
shift.underline=false
shift.weight=50
stack.background=transparent
stack.foreground=#569cd6
stack.italic=false
stack.underline=false
stack.weight=50
system.background=transparent
system.foreground=#569cd6
system.italic=false
system.underline=false
system.weight=75
taken_jump.foreground=red

Clone this wiki locally