# Source - https://stackoverflow.com/q/79827652
# Posted by Maj mac, modified by community. See post 'Timeline' for change history
# Retrieved 2025-11-23, License - CC BY-SA 4.0
style.configure('Dark.TButton', background=button_base, foreground=colors['text'], borderwidth=1,
bordercolor=edge, lightcolor=edge, darkcolor=edge, padding=(10, 4))
style.map('Dark.TButton',
background=[('pressed', pressed_bg or hover_bg or button_base),
('active', hover_bg or button_base),
('!disabled', 'red')],
foreground=[('active', colors['text']), ('pressed', colors['text'])],
bordercolor=[('pressed', edge), ('active', edge)],
lightcolor=[('pressed', edge), ('active', edge)],
darkcolor=[('pressed', edge), ('active', edge)])
style.layout('Dark.TButton', [
('Button.border', {'sticky': 'nswe', 'children': [
('Button.padding', {'sticky': 'nswe', 'children': [
('Button.label', {'sticky': 'nswe'})
]})
] })
])