Menu

Strange background color in hand-made-menus

Helpdesk
2014-01-26
2014-02-05
  • Hombremaledicto

    Hombremaledicto - 2014-01-26

    Dunno if this is an issue with bespin or BE::Shell, or just a problem with the colorscheme i made.
    The problem:

    schermata271

    This happens only with the menus i made and the scripted ones. The menus generated by code, BE::Config and windowslist, are sane, as the ones in windows, following the settings in bespin/systemsettings:

    schermata270

    I've checked the CSS theme, there should be no line involving QMenu, or affecting its background-color.
    I'm using the latest Bespin and BE::Shell.

    EDIT: forget it, there was actually a single line wrote time ago - in the attempt to fix the menus after adding some space between menubar items - that i didn't notice.

    Fallback question then: what are the new tags for the calendar?

     

    Last edit: Hombremaledicto 2014-01-26
  • Thomas Luebking

    Thomas Luebking - 2014-01-26

    So... is there still an open issue about the menu background?

    Reg. the Calendar:

    Calendar (didn't change) ...

    Calendar {

    margin:4px;
    background-color:#111;
    

    }

    ... and contains (as interesting items) ...

    Calendar QTableView {

    alternate-background-color: #707070;
    selection-background-color: #111;
    selection-color: white;
    background:#707070;
    border-top:1px solid #444;
    gridline-color:#707070;
    

    }

    ... and

    Calendar #qt_calendar_navigationbar, #Calendar #qt_calendar_navigationbar > * {

    background-color:#111;
    color:#ddd;
    font-size:18pt;
    font-weight:bold;
    

    }

    (just an example)

     
  • Hombremaledicto

    Hombremaledicto - 2014-01-26

    No, no issues about the menus background anymore, my bad. And my apologies. I don't like to make devs waste their time following fake probs, really. Sometimes one has the issue under his nose, but can't see it at all!

    Thanks for the calendar. I missed those tags!

     

    Last edit: Hombremaledicto 2014-01-26
  • Thomas Luebking

    Thomas Luebking - 2014-01-26

    Nevermind. If you suspect a bug, reporting it is no waste - even if it turns out false.

    I'm rather wasting MY time on tearing my few left hair about ppl. wasting THEIR time on cloning ridiculous desktop shells ;-)

    If there's larger interest on a maximized window control, one could write one in c++ (as this allows binding to changes of the active window, eg. to alter the button icons or disable/hide it if there's no maximized window etc.)

     
  • Hombremaledicto

    Hombremaledicto - 2014-01-28

    Sure thing! I'll report any possible bug :-)

    Oh...yeah, about that i can't tell if i was curious or bored. Sometimes i just fall into a masochist period. So i ended with cloning unity :|
    Although i'm kinda surprised: so far i like this layout. And i was looking to create a dark theme since a long time.

    "If there's larger interest on a maximized window control, one could write one in c++ (as this allows binding to changes of the active window, eg. to alter the button icons or disable/hide it if there's no maximized window etc.)"

    That would be absolutely nice! I have no idea on how to develop a C++ app for this, though, being just a C noob student, a bad student.

    P.S. As it looks atm(i'm showing it cause i like to share my masochism with other ppl. Which...Makes me a sadic? O.o):

    schermata280

    schermata278

     

    Last edit: Hombremaledicto 2014-01-28
  • Thomas Luebking

    Thomas Luebking - 2014-01-28

    "That would be absolutely nice! I have no idea on how to develop a C++ app for this, though, being just a C noob student, a bad student."

    Want to try (guided) nevertheless? (Warning: you may learn something!)

     
  • Hombremaledicto

    Hombremaledicto - 2014-01-28

    Why not? Sounds fun!

     
  • Thomas Luebking

    Thomas Luebking - 2014-01-28

    You might want to check mediatray.*
    Windowmanagement API is here:
    http://api.kde.org/4.x-api/kdelibs-apidocs/kdeui/html/classKWindowSystem.html

    Other than that, i'd need to know how much help you need - just ask =)
    (preferably by mail)

     
  • Hombremaledicto

    Hombremaledicto - 2014-01-30

    Thank you very much for your time. I hope to get my ass on this tomorrow :)
    During these days i'm really in troubles with exams (math analysis and algebra, both of them the incoming week), despite that i'd like to put my fingers on C++. I was already thinking on a Qt dash/app-launcher.
    By the way, in the meantime, i wanted to ask you some things:
    1) What was the option to disable desktop-switching through mouse wheel in BE::Shell ? Lars mentioned that a long time ago, i remember i even tried it. Nevermind, got it:
    WheelOnLMB=true
    2) What was the option to disable menubar exportation in BE::Shell? Lars told me that too.
    Both of these should go into the wiki. Sorry in case they're already written in the documentation: sometimes i really can't see what i'm looking for (strange fact).
    3)Any chance to invoke hardcoded menus from a button? Like:
    [myButton]
    Menu=BE::Config
    Type=button

    I admit i had very few time to try this, but so far it did not work (maybe i made some mistakes while trying to get this working, as i'm used to).

    Btw, i was also interested on this. But i see some of its dependencies are deprecated. Please, if it's still possible to develop somethink like it, lead me a hand on this too! I'm not the only one interested. I'll implement it, whether i can, but i need help.

     

    Last edit: Hombremaledicto 2014-01-30
  • Thomas Luebking

    Thomas Luebking - 2014-01-31

    Sorry fot the delay, yes "WheelOnLMB=true" is correct. The other one is "WindowMenus=false".
    I completed the config wiki in that regard, thanks for the notice.

    Added requested support (and by that found an ugly bug in present code)

    You mean gnome-globalmenu support?
    https://aur.archlinux.org/packages/gnome-globalmenu/
    Disable compilation of the gnome-panel (not required and will likely cause requirement of gnome packages)

     
  • Hombremaledicto

    Hombremaledicto - 2014-02-05

    About the gnome-globalmenu thingy, got it working (sorry, i was misunderstanding: totally ignored the fact that it's an already supported feature). I've placed this var in my .zshrc:
    export GTK_MODULES=globalmenu-gnome
    But it only works by launching the applications from command line:

    schermata297

    Damn...It's so damn nice having the gtk2 app menubar working with the globalmenu. So damn nice :D

     
  • Thomas Luebking

    Thomas Luebking - 2014-02-05

    Because it's only exported in zsh - add

    ~/.kde/env/ggm.sh

    !/bin/sh

    export GTK_MODULES=globalmenu-gnome:$GTK_MODULES

    (though libcanberry might nuke that with it's complete failure to set an environment, remove the export from zshrc and check the final value then)

     
  • Hombremaledicto

    Hombremaledicto - 2014-02-05

    It worked :)
    Removed the zshrc line after creating that script. Now it's working just fine.
    i can not express how grateful i am in this moment. This is something i dreamed about for months. LibreOffice and Firefox are not supported (i know that firefox is not a gtk app, and i assume that libreoffice is the same), but anyway: this is way to good. May i ask why this wasn't explicitally mentioned before(within at least one of the two projects wiki)? Is it due to the gnome-globalmenu statuts(abandoned)?

    Anyway, i still did not implement the button applet - sorry. Pretty sick here, and i have an important exam the day after tomorrow. Sorry.
    By the way: got my mail? Not sure whether you did or not.

     

    Last edit: Hombremaledicto 2014-02-05
  • Thomas Luebking

    Thomas Luebking - 2014-02-05

    "A little lag"? Yes, responded the same way (sft.net message - if i ever had a real mail address, I apparently lost it. You may just mail to the addrres found in every source file to fix that ;-)

    There's somehow no detailed descriotion on the client side global menus - and ggm can be tricky to install, yes ;-)

     
  • Hombremaledicto

    Hombremaledicto - 2014-02-05

    Hmm, this is weird (checked my SF settings, i allowed anyone to mail me) no mails received so far. Feel free to write me at: sk1nnybstard@gmail.com
    Sorry for the mess.

     

Log in to post a comment.

Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.