mirror of
https://github.com/gryf/wmdocklib.git
synced 2025-12-20 12:58:08 +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,
|
def init_pixmap(background=None, patterns=None, style='3d', width=64,
|
||||||
height=64, margin=3, font_name=None, bg="black", fg="gray",
|
height=64, margin=3, font_name=None, bg="black", palette=None):
|
||||||
palette=None):
|
|
||||||
"""builds and sets the pixmap of the program.
|
"""builds and sets the pixmap of the program.
|
||||||
|
|
||||||
the (width)x(height) upper left area is the work area in which we put
|
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')
|
bevel = get_unique_key('#bebebe')
|
||||||
palette[bevel] = '#bebebe'
|
palette[bevel] = '#bebebe'
|
||||||
|
|
||||||
# handle bg/fg colors
|
# handle bg color
|
||||||
bg = normalize_color(bg)
|
bg = normalize_color(bg)
|
||||||
key = get_unique_key(palette)
|
key = get_unique_key(palette)
|
||||||
palette[key] = bg
|
palette[key] = bg
|
||||||
|
|||||||
Reference in New Issue
Block a user