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

[Feature request] Any chance for custom color schemes #21

Open
ALexus1907 opened this issue Jun 13, 2021 · 3 comments
Open

[Feature request] Any chance for custom color schemes #21

ALexus1907 opened this issue Jun 13, 2021 · 3 comments

Comments

@ALexus1907
Copy link

I'd love to use my very own color scheme with this widget

@ALexus1907 ALexus1907 changed the title Any chance for custom color schemes [Feature request] Any chance for custom color schemes Jun 13, 2021
@Lateralus138
Copy link

Lateralus138 commented Sep 5, 2022

It seems the color schemes are read/sourced from:
/usr/lib/x86_64-linux-gnu/qt5/qml/QMLTermWidget/color-schemes

Screenshot_20220904_212510

so if you put your theme there and then add a new selection line to the file
~/.local/share/plasma/plasmoids/com.koldbyte.kde.termoid/contents/ui/config/ConfigGeneral.qml
with the name in the Description= section of your theme file to it:

...
                ComboBox {
                    id: colorscheme
                    currentIndex: plasmoid.configuration.colorscheme
                    model: ListModel {
                        id: cbItems
                        ListElement { text: "BlackOnLightYellow"; }
                        ListElement { text: "BlackOnRandomLight"; }
                        ListElement { text: "Linux"; }
                        ListElement { text: "BlackOnWhite"; }
                        ListElement { text: "DarkPastels"; }
                        ListElement { text: "GreenOnBlack"; }
                        ListElement { text: "WhiteOnBlack"; }
                        ListElement { text: "BreezeModified"; }
                        ListElement { text: "cool-retro-term"; }
                        ListElement { text: "Tango"; }
                        ListElement { text: "Ubuntu"; }
                    }
                }
...

here I have added Tango and Ubuntu (which already exists) and I have tested and it works for me.

There are different styles of color scheme files and it only works with certain formats so I would just copy/rename one of the theme files that already works and edit it as needed to create your own theme (be sure to change the name in the Description so as to not have confusing duplicates in your menu).

Here is the Ubuntu color scheme in action:

Screenshot_20220904_212223

And a Metro-ish theme I just wrote using the base Ubuntu.colorscheme:

Screenshot_20220905_114619

@Patrick28x7w7
Copy link

Was just trying to do this exact thing to sync my termoid colors with my konsole colors and @Lateralus138's comment popped up, thanks for the help! This should be in the github's readme, though for me the color schemes were found in /usr/lib64/qt5/qml/QMLTermWidget/color-schemes. For future reference, the way I found where they are is by doing rpm -ql qmltermwidget

@Lateralus138
Copy link

...thanks for the help!

No problem, glad I could help!

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

3 participants