You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I really liked this theme, but I don't really like long command lines. I made some suggestions through this script.
Installation Proposal for WhiteSur GTK Theme
Overview
This proposal aims to improve the installation process for the WhiteSur GTK Theme repository by enhancing the clarity and consistency of command-line options used in the installation scripts. The changes focus on implement short flags with more descriptive long-form options and improving user input validation.
Proposed Changes
Enhanced Command Options:
For install.sh:
Replace -d with --destination
Replace -n with --theme-name
Replace -o with --opacity
Replace -c with --color-variant
Replace -a with --window-buttons
Replace -t with --accent
Replace -s with --color-scheme
Use --monterey as a flag to enable MacOS Monterey style
For tweaks.sh:
Replace similar short flags with descriptive options: --opacity, --color-variant, --accent, --color-scheme
Use --configure-gdm and --gdm-icon for GDM configuration options
Input Validation and Error Handling:
Add checks to ensure that user inputs are valid.
Provide clear error messages in case of invalid configurations.
Modularization:
Separate the interactive configuration logic from the command execution logic.
This allows for both interactive and non-interactive modes of installation.
Implementation Details
The updated scripts will use a combination of interactive dialogs and command-line argument parsing (using methods like getopts or similar) to ensure clarity and flexibility. Default values will be defined, and users can override them via the new descriptive flags.
If we want longer, descriptive command line flags, I'd suggest adding them rather than replacing the short flags. I have install scripts based on the current flags, and I kinda doubt I'm the only one.
I want to clarify that my intention is not to replace the existing execution flags but rather to add more user-friendly options alongside them. The goal is to make the interface more approachable for newcomers while maintaining full compatibility with existing scripts and workflows. Having both short and descriptive flags would allow more people to use the tool while ensuring current users can continue using their established scripts without any changes.
I really liked this theme, but I don't really like long command lines. I made some suggestions through this script.
Installation Proposal for WhiteSur GTK Theme
Overview
This proposal aims to improve the installation process for the WhiteSur GTK Theme repository by enhancing the clarity and consistency of command-line options used in the installation scripts. The changes focus on implement short flags with more descriptive long-form options and improving user input validation.
Proposed Changes
Enhanced Command Options:
-d
with--destination
-n
with--theme-name
-o
with--opacity
-c
with--color-variant
-a
with--window-buttons
-t
with--accent
-s
with--color-scheme
--monterey
as a flag to enable MacOS Monterey style--opacity
,--color-variant
,--accent
,--color-scheme
--configure-gdm
and--gdm-icon
for GDM configuration optionsInput Validation and Error Handling:
Modularization:
Implementation Details
The updated scripts will use a combination of interactive dialogs and command-line argument parsing (using methods like
getopts
or similar) to ensure clarity and flexibility. Default values will be defined, and users can override them via the new descriptive flags.Proposed Code Changes
Updated Interactive Installation Script (install_interactive.sh)
The text was updated successfully, but these errors were encountered: