mirror of
https://github.com/gryf/wmdocklib.git
synced 2025-12-19 04:20:17 +01:00
Drop support for foreground color.
This commit is contained in:
@@ -158,8 +158,7 @@ def read_xpm(filename):
|
||||
|
||||
|
||||
def init_pixmap(background=None, patterns=None, style='3d', width=64,
|
||||
height=64, margin=3, font_name=None, bg="black", fg="gray",
|
||||
palette=None):
|
||||
height=64, margin=3, font_name=None, bg="black", palette=None):
|
||||
"""builds and sets the pixmap of the program.
|
||||
|
||||
the (width)x(height) upper left area is the work area in which we put
|
||||
@@ -220,7 +219,7 @@ def init_pixmap(background=None, patterns=None, style='3d', width=64,
|
||||
bevel = get_unique_key('#bebebe')
|
||||
palette[bevel] = '#bebebe'
|
||||
|
||||
# handle bg/fg colors
|
||||
# handle bg color
|
||||
bg = normalize_color(bg)
|
||||
key = get_unique_key(palette)
|
||||
palette[key] = bg
|
||||
|
||||
Reference in New Issue
Block a user