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

Further implementation of stylix.imageScalingMode #678

Merged
merged 8 commits into from
Dec 18, 2024

Conversation

justDeeevin
Copy link
Contributor

@justDeeevin justDeeevin commented Dec 12, 2024

Fixes #677
Presently, stylix.imageScalingMode only has an effect on sway. This PR implements it for

  • swaylock
  • wpaperd
  • GNOME
  • feh
  • grub
  • regreet

It seems like setting this for KDE isn't possible with our current methods.

@trueNAHO
Copy link
Collaborator

Marked as draft because:

  • I want to add support for KDE, but am unsure how.

I am not very familiar with the KDE ecosystem. @danth, might be more helpful here.

  • GNOME implementation is untested.
    I personally use Hyprland, so I can't very easily test this.

Consider using testbeds. Note that #612 already adds testbeds for various applications.

Let me know if there's any other apps that should support this option.

The following modules rely on stylix.image:

$ rg --files-with-matches stylix\.image modules | sort
modules/feh/hm.nix
modules/feh/nixos.nix
modules/gnome/hm.nix
modules/gnome/nixos.nix
modules/grub/nixos.nix
modules/hyprlock/hm.nix
modules/hyprpaper/hm.nix
modules/i3/hm.nix
modules/kde/hm.nix
modules/lightdm/nixos.nix
modules/regreet/nixos.nix
modules/sway/hm.nix
modules/swaylock/hm.nix
modules/wpaperd/hm.nix

@justDeeevin
Copy link
Contributor Author

So I can avoid some headaches: does this repo have a standard format/formatter?

@justDeeevin
Copy link
Contributor Author

The testbed is confusing me--how can I adjust the stylix configuration that's being used in the VM?

@justDeeevin justDeeevin force-pushed the imageScaling-expansion branch from 611e976 to 2335d41 Compare December 12, 2024 23:01
@justDeeevin justDeeevin force-pushed the imageScaling-expansion branch from 208088b to 3a58f56 Compare December 13, 2024 12:56
@trueNAHO
Copy link
Collaborator

So I can avoid some headaches: does this repo have a standard format/formatter?

In order to declutter the commit history, avoid formatting changes, as they will be superseded by #519 in the future.

how can I adjust the stylix configuration that's being used in the VM?

Testbeds are implemented in /stylix/testbed.nix. For more testbed examples, consider looking at #612.

@justDeeevin
Copy link
Contributor Author

For KDE: it doesn't look like a look-and-feel can change the image fill mode...? this is very poorly documented

@justDeeevin
Copy link
Contributor Author

Apart from KDE, this is ready.

@justDeeevin justDeeevin marked this pull request as ready for review December 13, 2024 15:47
modules/gnome/hm.nix Outdated Show resolved Hide resolved
@justDeeevin
Copy link
Contributor Author

Anything else?

@trueNAHO trueNAHO enabled auto-merge (squash) December 18, 2024 14:14
@trueNAHO trueNAHO requested a review from danth December 18, 2024 14:14
trueNAHO
trueNAHO approved these changes Dec 18, 2024
@trueNAHO trueNAHO merged commit a2d66f2 into danth:master Dec 18, 2024
12 checks passed
stylix-automation bot pushed a commit that referenced this pull request Jan 4, 2025
Add stylix.imageScalingMode support to all modules except:

- hyprlock
- hyprpaper
- kde
- lightdm
- sway

Closes: #677
Link: #678

Reviewed-by: NAHO <[email protected]>
Reviewed-by: Daniel Thwaites <[email protected]>
(cherry picked from commit a2d66f2)
@stylix-automation
Copy link

Successfully created backport PR for release-24.11:

trueNAHO pushed a commit that referenced this pull request Jan 4, 2025
Add stylix.imageScalingMode support to all modules except:

- hyprlock
- hyprpaper
- kde
- lightdm
- sway

Closes: #677
Link: #678

Reviewed-by: NAHO <[email protected]>
Reviewed-by: Daniel Thwaites <[email protected]>
(cherry picked from commit a2d66f2)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

stylix.imageScalingMode has no effect in many places
3 participants