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

[Solved] Customising a theme, questions & script errors. #79

Open
TassieDevyl opened this issue Oct 27, 2024 · 1 comment
Open

[Solved] Customising a theme, questions & script errors. #79

TassieDevyl opened this issue Oct 27, 2024 · 1 comment

Comments

@TassieDevyl
Copy link

Hi folks,
I've been attempting to customise the colours in the QDarkStyleSheet theme, to colours from the Nord Theme palette.
I'm using Siduction (Debian Sid), Python 3.12.7

  1. Cloned the qbt-theme using github cli
  2. changed the colour codes in ..../qbt-theme/Builds/QDarkStyleSheet/qdarkstyle/palette.py
  3. ran the make-resource.py script
    python3 ./make-resource.py -style QDarkStyleSheet

I get the following errors

  1. File .....qBittorrent/Themes/qbt-theme/Builds/./make-resource.py", line 80, in <module> if not subprocess.call(cmd):
  2. File "/usr/lib/python3.12/subprocess.py", line 1026, in __init__ self._execute_child(args, executable, preexec_fn, close_fds,
  3. File "/usr/lib/python3.12/subprocess.py", line 1955, in _execute_child raise child_exception_type(errno_num, err_msg, err_filename)
  4. FileNotFoundError: [Errno 2] No such file or directory: '..../Internet/qBittorrent/Themes/qbt-theme/Builds/tools/rcc'

Errors 1. through 3. I don't understand as I'm not a experienced python user. Perhaps there are python packages I need to install?

Error 4. I do understand, in the tools directory there is one file, a Windows executable rcc.exe
There is no Linux equivalent present in the tools directory.

I chose this method as the Wiki entry "Create Custom Themes" references the script is "for the easy creation of .qbttheme files."

Where to go from here? As I've discovered using the script is not so straight forward, and there are no 'troubleshooting tips' if the script fails to complete.

@TassieDevyl TassieDevyl changed the title Customising a theme, questions & script errors. [Solved] Customising a theme, questions & script errors. Oct 27, 2024
@TassieDevyl
Copy link
Author

Marked as solved, after some searching for possible solutions.

The key here was error number 4, the lack of an rcc.exe Linux equivalent in the tools folder.

The necessary binary, in this case rcc was already installed on my system, included in packages qtbase5-dev-tools.

Once I found out this it was a simple matter of changing the entry in make-resource.py script where rcc was being called and updating the path.

Thought I'd leave the original query intact, and posting the solution separately in case someone else ran into the same complication on Linux.

Cheers.

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

No branches or pull requests

1 participant