Firefox 40+ wacky button fix for windows 10

Discussion in 'Application Software' started by pf100, Aug 11, 2015.

  1. drei941

    drei941 MDL Novice

    Aug 24, 2012
    18
    3
    0
    Since you obviously dove into the matter, what do you think about Pale Moon?
    Just asking because I'm thinking about switching.
     
  2. MiLToS_666

    MiLToS_666 MDL Novice

    Aug 2, 2009
    14
    0
    0
    It's not my personal code, I just found it somewhere and pasted it here.
    Your code is nice, I just don't like the flashing colors on the buttons when you hover above and click them.
    Oh well, everbody has their own way after all. :biggrin:
     
  3. lllFATAL1TY

    lllFATAL1TY MDL Member

    Dec 21, 2013
    104
    90
    10
  4. MiLToS_666

    MiLToS_666 MDL Novice

    Aug 2, 2009
    14
    0
    0
    This code above looks great! I'm using it now.:clap:
     
  5. pf100

    pf100 Duct Tape Coder

    Oct 22, 2010
    2,069
    3,447
    90
    #65 pf100, Aug 16, 2015
    Last edited by a moderator: Apr 20, 2017
    (OP)
    Your code kills the double glyphs when you turn off the titlebar and when not maximized, but hover colors are very inconsistent when not maximized with no titlebar. So if we can figure a way to use the best of our two methods I think we have a winner. What theme are you guys using? Does firefox look like everything else to you now? And what are the differences if not? Just curious as to why you like this userChrome.css better.
     
  6. Leadbelly

    Leadbelly MDL Novice

    Apr 14, 2010
    36
    4
    0
    #66 Leadbelly, Aug 16, 2015
    Last edited by a moderator: Apr 20, 2017
    userChrome.css

    Code:
    @media (-moz-os-version: windows-win10) {  
    #main-window:not([customizing]) {-moz-appearance: -moz-win-glass !important; background-color: transparent !important; } 
    .titlebar-button {background-color: transparent !important; } 
    .titlebar-button:hover {background-color: Highlight !important; } 
    #titlebar-close:hover {background-color: hsl(355, 86%, 49%) !important; }
    #titlebar-close:hover:active {background-color: hsl(355, 82%, 69%) !important; }
     
  7. digitalcongo

    digitalcongo MDL Novice

    Nov 3, 2009
    15
    0
    0
    Last i checked FT deepdark wasn't compatible with FF40, i have been using deepdark for a while, because it fixes the garbled mess that occurs when you have long lists of favorites in toolbar folders.
    I will update to FF40 when deepdark is ported.
     
  8. pf100

    pf100 Duct Tape Coder

    Oct 22, 2010
    2,069
    3,447
    90
    #68 pf100, Aug 16, 2015
    Last edited by a moderator: Apr 20, 2017
    (OP)
    That removed the hover color when there's no titlebar and didn't fix the misaligned window buttons. Thanks for contributing though. Every bit of input is good.
     
  9. chris34

    chris34 MDL Member

    Oct 28, 2009
    188
    49
    10
    #69 chris34, Aug 16, 2015
    Last edited by a moderator: Apr 20, 2017
    I use this css (see below), which is pretty much the same css and it does work without the forced title bar.

    Code:
    @media (-moz-os-version: windows-win10) {  
    #titlebar-buttonbox .titlebar-button, #main-window{background-color: transparent !important;} 
    #titlebar-buttonbox .titlebar-button:hover  {background-color: Highlight !important;} 
    #titlebar-buttonbox #titlebar-close:hover {background-color: hsl(355, 86%, 49%) !important;}
    #titlebar-buttonbox #titlebar-close:hover:active {background-color: hsl(355, 82%, 69%) !important;}}
    1.gif

    If you're using some other software like one to glass your windows, you should try to open chrome://browser/content/browser.xul in your browser, right click to see the code and what .css file does what, and start adjusting things in your own userchrome.css to fit your need.
     
  10. MonarchX

    MonarchX MDL Expert

    May 5, 2007
    1,732
    313
    60
    Just tried the x64 version optimized for my Intel CPU and its definitely slower than Waterfox for me.
     
  11. TShadow

    TShadow MDL Junior Member

    May 21, 2007
    84
    33
    0
    Actually FT DeepDark 12beta21 works quite well with FF40.
     
  12. Underclocked

    Underclocked MDL Member

    Sep 3, 2013
    247
    42
    10
    That's not the default theme. It is a one time setup though if you use MozBackup.
     
  13. pf100

    pf100 Duct Tape Coder

    Oct 22, 2010
    2,069
    3,447
    90
    #79 pf100, Aug 27, 2015
    Last edited: Aug 27, 2015
    (OP)
    What theme? Can you give me an example? Did the old code work better (your code)?
     
  14. chris34

    chris34 MDL Member

    Oct 28, 2009
    188
    49
    10
    #80 chris34, Aug 27, 2015
    Last edited by a moderator: Apr 20, 2017
    Advertise it as "only works for windows glass thingy", cause it break themes hardcore.

    Have look at my beloved simon's cat theme with that code

    Capture2.PNG


    You can fix the double icons by adding margin-top:-3px !important; to that line (see below) on the code I posted code btw. Adjust the padding/margin with how big or thin you set the Windows 10 window/border padding. If untouched you don't need to change/set the padding/margin, if set to 0 I think it needs a margin-top of -3px to fix he shadowy/double icons.

    #titlebar-buttonbox .titlebar-button{background-color: transparent !important; }

    something like
    Code:
    @-moz-document url(chrome://browser/content/browser.xul) {
    @media (-moz-os-version: windows-win10) {  
    #main-window:not([customizing]) {-moz-appearance: -moz-win-glass !important; background-color: transparent !important;  } 
    #titlebar-buttonbox .titlebar-button{background-color: transparent !important; margin-top:-3px !important;}
    #titlebar-buttonbox .titlebar-button:hover{background-color: highlight !important;}
    #titlebar-buttonbox #titlebar-close:hover {background-color: hsl(355, 86%, 49%) !important;}
    #titlebar-buttonbox #titlebar-close:hover:active {background-color: hsl(355, 82%, 69%) !important;}}}
    
    can also replace margin-top by padding-top 7px