Thank you for your interest in contributing to Nottodbox!
Caution
You should not use <> in file name. I'll use them here because I wanted to highlight that they need to change.
If it is related to the nottodbox/ folder, i.e., directly related to the application code, please use the “Bug Report” template.
Please use the "Feature Request" template.
Respect code style:
- Linter: Ruff
- Formatter: Ruff
- Naming: MyClass, myFunction, my_variable, MY_CONST and use
selffor the first argument of class.
Nottodbox uses two different systems for localization depending on the type of content:
- QTranslator for the main application's UI translations (necessary).
- gettext for
.desktopand.metainfofiles (optional, this is only related with Linux).
- The UI strings in the app are translated using Qt's QTranslator system.
- Translation files are
.tsfiles located in thelocates/directory. - To contribute translations or updates:
- If you add a new language:
- Run
pyside6-lupdate nottodbox/scripts/*.py nottodbox/scripts/*/*.py -no-obsolete -source-language en_US -target-language <languagecode_COUNTRYCODE> -ts locale/<languagecode_COUNTRYCODE>.ts(do not forget change languagecode_COUNTRYCODE (example: tr_TR)) - Use Qt Linguist (
linguist) to open and edit.tsfiles. - Submit updated file in your pull request.
- The
.desktopand.metainfofiles use GNU gettext for localization. - Translation files are
.pofiles located in thepo/directory. - To contribute:
- If you add a new language:
- Run
xgettext share/applications/io.github.mukonqi.nottodbox.desktop.in share/metainfo/io.github.mukonqi.nottodbox.appdata.xml.in -o po/template.pot. - Copy
po/template.potfile and paste aspo/<languagecode_COUNTRYCODE>.po(do not forget change languagecode_COUNTRYCODE (example: tr_TR)) - Edit the relevant
.pofiles using a gettext editor such as Poedit. - Submit updated file with your pull request.
Nottodbox supports two color scheme format:
-
KDE's .colors format: Detailed and very popular (just look to KDE Store | Plasma Color Schemes)
-
Nottodbox's .json format: Simple and preferred way for Nottodbox
-
To contribute:
- Prepare the file:
- Use Nottodbox's appareance settings.
- By-hand:
- Create
nottodbox/color-schemes/<name>.jsonfile. - Copy-paste this:
{ "name": "", "colors": { "Window": "", "WindowText": "", "Base": "", "AlternateBase": "", "ToolTipBase": "", "ToolTipText": "", "PlaceholderText": "", "Text": "", "Button": "", "ButtonText": "", "BrightText": "", "Light": "", "Midlight": "", "Dark": "", "Mid": "", "Shadow": "", "Highlight": "", "Accent": "", "HighlightedText": "", "Link": "", "LinkVisited": "" } }- And edit file according to this:
- Colors must be in the HEX form (#rrggbb).
- If you are not going to set a color for a color role, you must delete it from the file.
- You learn meaning of these color roles in Qt's page.
- Create
- Submit the new file.
By contributing to Nottodbox, you agree that your contributions will be licensed under the project's GPL-3.0-or-later license.
Thank you for helping improve Nottodbox!