Imgbrd-grabber: Is there a simple way/simpler way to make most of the background black and the text white?

Created on 8 Apr 2017  路  15Comments  路  Source: Bionus/imgbrd-grabber

I was messing around with it tonight here for, well about an hour actually. I'm pretty good at picking stuff up very fast, but I got myself pretty stumped with changing some of the text, well actually most of the text.

Here's where I got. I only know how to edit the Widget, PushButton, TextEdit, and Label xD

2017-04-08 02_53_31-greenshot

Any help appreciated but I don't want to deter from actual problems or way more important issues, just was curious to be honest.

Thanks!

question

Most helpful comment

I don't know what "MAL" is but yeah, it's pretty much normal CSS.

You can find the full reference here (there are minor changes):
https://doc.qt.io/qt-5/stylesheet-reference.html

The easiest way would be something in the lines of:

* {
    background-color: black;
    color: white;
}

But that seems a little bit extreme.

Did you check how other themes were made for Qt? I know there's a few dark themes out there, such as:
https://github.com/mervick/Qt-Creator-Darcula
https://github.com/ColinDuquesnoy/QDarkStyleSheet
https://github.com/EClaesson/QTDark
http://tech-artists.org/t/release-qt-dark-orange-stylesheet/2287#post14381

All 15 comments

I also just realized that it is CSS. Can I do it like normal CSS? I hadn't tried it, and honestly I would mess around with it more but I'm getting too sleepy at this point.

(By normal CSS, if this helps because I honestly don't even know what "normal CSS" would be, is like on MAL. Like this for example:

searchBox {

width: 128px !important;
margin-left: 1px;

}

I loved messing around with MAL but dang that's some confusing stuff sometimes)

I don't know what "MAL" is but yeah, it's pretty much normal CSS.

You can find the full reference here (there are minor changes):
https://doc.qt.io/qt-5/stylesheet-reference.html

The easiest way would be something in the lines of:

* {
    background-color: black;
    color: white;
}

But that seems a little bit extreme.

Did you check how other themes were made for Qt? I know there's a few dark themes out there, such as:
https://github.com/mervick/Qt-Creator-Darcula
https://github.com/ColinDuquesnoy/QDarkStyleSheet
https://github.com/EClaesson/QTDark
http://tech-artists.org/t/release-qt-dark-orange-stylesheet/2287#post14381

Thanks for the theme references.

Do you know any non dark QT themes? It would be interesting for me

Here's one: https://github.com/MartinBriza/adwaita-qt, although it's more complicated than just CSS. Still, I'd totally use this if it was implemented. Sorry for always suggesting features in threads that have nothing to do with it.

Oh sorry.

To Bionus: MyAnimeList, MAL for short.

It uses CSS for the anime and manga lists that each person has.

Thanks you EXTREMELY much for the themes there, I'll check these out in a little bit! That should work perfectly for me. I just wanted something less brighter so I can look at my pictures at night better.....

That sounds was worse when you include it with my photo here. I'll be able to mess around better too after I look at these. Thanks again!

EDIT: After looking at this, yep it's the exact same. smh I HATE when I freaking know what it is, and then do junk randomly at 3 AM, not half even being able to focus properly or think for that matter.

Okay so one more thing real quickly.

The orange theme you had on your suggestions there, perfect. Works perfect, exactly what I'd want, but the text for the Favorites isn't changed. Is there a way to change the color for that text?

2017-04-08 17_31_05-greenshot

You mean you want the favorites text to be black?

The favorites are not QLabel, they are QAffiche (custom Grabber UI class). So:

QAffiche {
    color: black;
}

Your theme is black text on dark grey/maroon background? 馃槺

The orange theme is great, indeed, saved it too.

BTW, why there are so much cross in your favourites?
Did you know that if you add tag to favourites from some image preview page, then this image will be icon of this tag in your favourites.

See? Much better!
image

for @Bionus btw, this imageless favourites reminds me about https://github.com/Bionus/imgbrd-grabber/issues/779 issue, where I suggested you a way to add thumbnails to favourites, when you adding it from search field.

Okay now that WORKED HOWEVER, and I'm really sorry LOL, but I wanted the Favorites text on the left side to be orange. Which actually, that helped by the way a lot.

I see now what you mean as the favorites thing. That's awesome. That'll look 300x better now. Thank you much Petrik for that info!

This spot:

2017-04-08 18_02_08-grabber

EDIT: LOL yeah I like it to be darker because I usually do a lot of photo grabbing toward night time. Even if it's not towards night time, my eyes can sometimes get a little confused when it's plain white. Plus I think it brings out the photos better, at least to me. I've always liked darker colors too xD

It's not possible for the moment, as these are HTML links, and they are not stylable by Qt stylesheets (only widgets are).

It's not possible for the moment, as these are HTML links, and they are not stylable by Qt stylesheets (only widgets are).

Ah, that explains why not all of my styles were working. Can you make heads or tails of that adwaita theme? Like, is that compatible with Grabber? If you can't tell right away, that's fine, I was just curious and thought it might be a nice base for theming.

Aw darn alright, thanks for letting me know and for the help!

@Bionus the question has been answered, I guess. Should you close the issue?

Wow, this feels recent but it was 5 months ago.

Was this page helpful?
0 / 5 - 0 ratings