Skip to content

Commit

Permalink
fix: use same default alignment for FillBar base/fill
Browse files Browse the repository at this point in the history
Fixes #53
  • Loading branch information
kalekundert committed Sep 20, 2021
1 parent 75d0b59 commit f1d9711
Show file tree
Hide file tree
Showing 2 changed files with 17 additions and 0 deletions.
2 changes: 2 additions & 0 deletions glooey/themes/golden.py
Expand Up @@ -211,6 +211,7 @@ class Base(glooey.Background):
custom_left = assets.image('fill_bars/basic/base_left.png')
custom_center = assets.texture('fill_bars/basic/base_center.png')
custom_right = assets.image('fill_bars/basic/base_right.png')
custom_alignment = 'fill horz'
custom_htile = True

class Fill(glooey.Background):
Expand Down Expand Up @@ -244,6 +245,7 @@ class Base(glooey.Background):
custom_left = assets.image('fill_bars/fancy/base_left.png')
custom_center = assets.texture('fill_bars/fancy/base_center.png')
custom_right = assets.image('fill_bars/fancy/base_right.png')
custom_alignment = 'fill horz'
custom_htile = True

class Fill(glooey.Background):
Expand Down
15 changes: 15 additions & 0 deletions tests/issues/53.py
@@ -0,0 +1,15 @@
#!/usr/bin/env python3

import pyglet
import glooey.themes.golden as golden

print("Fill should be superimposed on base, not separated.")

window = pyglet.window.Window()
gui = golden.Gui(window)
bar = golden.FancyFillBar()
gui.add(bar)

bar.fraction_filled = .5

pyglet.app.run()

0 comments on commit f1d9711

Please sign in to comment.