emersion / emersion/mako

outer-margin is not sticking to mode setting

Open
#553 1 comment 3 reactions 0 assignees View on GitHub
bug
Dominant language
C
Stars
3.3k
Forks
173
PR merge metrics
No merged PRs in 30d

Description

I have a mode called test with a few settings including one centering the notification on my screen. All settings apply correctly only when this mode is activated, except for `outer-margin` which will also affect all other modes including default.

---

My config for reference with line 32 marked:

```ini
# https://github.com/emersion/mako?tab=readme-ov-file
# man 5 mako

# icons
icons=1
icon-path="/usr/share/icons/feather"
max-icon-size=14
icon-location=left

# style
font=Fira Code 12
background-color=#00000090
border-color=#00000000
width=96
# height=240
# border-size=3
border-radius=6
padding=6,6
# margin=100
outer-margin=9

# behaviour
default-timeout=2000
layer=overlay

[mode=test]
font=Fira Code 42
width=252
height=1000
padding=0,0
margin=0,0
outer-margin=450,839 # <<< HERE
border-radius=122
default-timeout=300
background-color=#05fcc260
text-alignment=center

# BATTERY -------
[mode=good]
background-color=#54ff0090
width=96
padding=6,12

[mode=warning]
background-color=#fcf00590
width=96
padding=6,12

[mode=critical]
background-color=#ff000090
width=96
padding=6,12

# ---------------

[mode=god]
text-color=#000000
background-color=#f7e84590
width=600
default-timeout=12000

# ---------------

# /usr/share/icons/feather-backup/scalable/apps/clock.svg
# /usr/share/icons/feather-backup/scalable/apps/sunrise.svg
# /usr/share/icons/feather-backup/scalable/apps/sunset.svg
# /usr/share/icons/feather-backup/scalable/apps/zap.svg
# /usr/share/icons/feather-backup/scalable/apps/activity.svg
# /usr/share/icons/feather-backup/scalable/apps/alert-circle.svg
```

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.