Skip to content

[BUG] Corner radius at don't get picked up by noctalia settings sync #96

Description

@inkurey-22

Submission checklist

  • I have searched existing issues and confirmed this is not a duplicate.
  • I am using the latest available version of noctalia-greeter.

Bug description

If in Noctalia settings, the corner radius is set to 0, it doesn't get exported to /var/lib/noctalia-greeter/sync.toml.

The corners are then rounded to a default value.

Different from #89, since it's not related to the manual config

Steps to reproduce

  1. In noctalia settings, set appearance -> corner roundness to 0.00
  2. Sync noctalia settings to greeter
  3. cat /var/lib/noctalia-greeter/sync.toml
  4. No corner_radius_scale` field

Expected behavior

When syncing with corner rounding at 0 from noctalia settings, a line looking like corner_radius_scale = 0 appears in /var/lib/noctalia-greeter/sync.toml

Actual behavior

When syncing with corner rounding at 0 from noctalia settings, no corner_radius_scale field is present in /var/lib/noctalia-greeter/sync.toml

Logs / error output


noctalia-greeter version

1.1.0-1

Distribution

Arch-based

Environment information

Installation method: CachyOS Repos


18:36:35 $ printf "With corner rounding at 0.20\n\n" && head /var/lib/noctalia-greeter/sync.toml 
With corner rounding at 0.20

# noctalia-greeter sync.toml (UI + Sync; not managed by Nix)
# [session] last, [session.power] suspend/reboot/shutdown, [[session.actions]] action/command/label/glyph
# [appearance] scheme, theme_mode, corner_radius_scale, font_family
# [appearance.palette] full color role table, [appearance.wallpaper]/[appearance.wallpapers.<connector>]
# [output] layout/transforms

[appearance]
corner_radius_scale = 0.20000000298023224
font_family = "Fira Sans"
scheme = "Synced"
curry@splatsville ~
18:37:58 $ printf "With corner rounding at 0.00\n\n" && head /var/lib/noctalia-greeter/sync.toml 
With corner rounding at 0.00

# noctalia-greeter sync.toml (UI + Sync; not managed by Nix)
# [session] last, [session.power] suspend/reboot/shutdown, [[session.actions]] action/command/label/glyph
# [appearance] scheme, theme_mode, corner_radius_scale, font_family
# [appearance.palette] full color role table, [appearance.wallpaper]/[appearance.wallpapers.<connector>]
# [output] layout/transforms

[appearance]
font_family = "Fira Sans"
scheme = "Synced"
theme_mode = "light"

Additional context

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions