ChrisTitusTech / linutil

Chris Titus Tech's Linux Toolbox - Linutil is a distro-agnostic toolbox designed to simplify everyday Linux tasks.
https://christitus.com
MIT License
1.75k stars 158 forks source link

refactor: Modify theme in place #174

Closed lj3954 closed 1 week ago

lj3954 commented 3 weeks ago

Pull Request

Title

Refactor next & previous theme to modify the value in place

Type of Change

Description

Currently, theme next() and prev() methods return a new value. There's no purpose for this, since we're only using the next and prev methods for modifying the value of the theme variable itself. Instead, I've changed the functions to modify the receiver in place, which improves the readability of the code.

Testing

Next and previous theme function correctly.

Checklist