jagannatharjun / qbt-theme

collection of themes for qbittorrent
1.97k stars 160 forks source link

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

Open TassieDevyl opened 1 day ago

TassieDevyl commented 1 day ago

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 commented 1 day ago

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.