Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: add markup support for labels #27

Merged
merged 5 commits into from
May 29, 2024
Merged

feat: add markup support for labels #27

merged 5 commits into from
May 29, 2024

Conversation

Axenide
Copy link
Contributor

@Axenide Axenide commented May 29, 2024

Instead of having to do set_markup() for every label, now you have the markup property which is a boolean.
By default, the label is plain text. With markup = True the label will now accept markup.

For example:

This code:

        self.run_label = Label(
            name="run-label",
            label="<span>&#xec2c;</span>",
        )

Will give this result:
imagen

With this addition, this code:

        self.run_label = Label(
            name="run-label",
            label="<span>&#xec2c;</span>",
            markup=True,
        )

Will give this result:
imagen

Axenide and others added 5 commits May 24, 2024 02:33
With Hyprland v0.40.0, the `/tmp/hypr/` directory was moved to
`XDG_RUNTIME_DIR/hypr/`. This commit supports latest and previous
Hyprland versions.
With Hyprland v0.40.0, the `/tmp/hypr/` directory was moved to
`XDG_RUNTIME_DIR/hypr/`.
This commit supports latest and previous Hyprland versions.
Instead of having to do `set_markup()` for every label, now you have the
`markup` property which is a boolean.
By default, the label is plain text, with `markup = True` the label will
now accept markup.
@its-darsh
Copy link
Contributor

LGTM

@its-darsh its-darsh merged commit 439578d into Fabric-Development:main May 29, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants