Rearrange findbar buttons

Users and developers helping users with generic and technical Pale Moon issues on all operating systems.

Moderator: trava90

Forum rules
This board is for technical/general usage questions and troubleshooting for the Pale Moon browser only.
Technical issues and questions not related to the Pale Moon browser should be posted in other boards!
Please keep off-topic and general discussion out of this board, thank you!
User avatar
mozart78
Moon lover
Moon lover
Posts: 99
Joined: 2014-08-02, 14:29
Location: Bulgaria

Rearrange findbar buttons

Unread post by mozart78 » 2014-08-04, 15:13

Hello everybody :)

Is there any workaround to rearrange "Next" and "Prev" buttons in Pale Moon? In FF there is a fix used in userChrome.css. I like Next button to be first, but fix for FF don't work in Pale Moon. The fix for FF is:

Code: Select all

findbar toolbarbutton[anonid="find-next"] label:after { content: 'Next' !important; }
findbar toolbarbutton[anonid="find-previous"] label:after { content: 'Prev' !important; }
findbar toolbarbutton[anonid="find-next"] label:after,
findbar toolbarbutton[anonid="find-previous"] label:after { margin-left: 2px !important; }

@-moz-document url("chrome://browser/content/browser.xul") {
.findbar-container spacer { visibility: collapse }
.findbar-closebutton { -moz-box-ordinal-group: 0 !important; }
.findbar-find-previous.tabbable { -moz-box-ordinal-group: 2 !important; }

@namespace url("http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul"); /* only needed once */

#TabsToolbar{-moz-box-ordinal-group:10000!important}
It works perfect even on FF v.31. It looks like that, after the fix:

Image

The code also permits renameing of buttons. Is there some way to drive buttons in this manner in Pale Moon too?

Thank you in advance and kind regards!
Image

mikeysc

Re: Rearrange findbar buttons

Unread post by mikeysc » 2014-08-04, 18:45

Next is 1st by default for me (PM 24.7). I do not have any css code in userChrome relating to this.

User avatar
mozart78
Moon lover
Moon lover
Posts: 99
Joined: 2014-08-02, 14:29
Location: Bulgaria

Re: Rearrange findbar buttons

Unread post by mozart78 » 2014-08-05, 10:16

I just tried without userChrome. Backed up it and delete it. Nothing, the result is the same :|
Image


User avatar
mozart78
Moon lover
Moon lover
Posts: 99
Joined: 2014-08-02, 14:29
Location: Bulgaria

Re: Rearrange findbar buttons

Unread post by mozart78 » 2014-08-05, 11:12

Thanks for your help, but this topic is for back and forward buttons. We talk for buttons in the find bar :)
Image

x-15a2

Re: Rearrange findbar buttons

Unread post by x-15a2 » 2014-08-05, 11:14

mozart78 wrote:Thanks for your help, but this topic is for back and forward buttons. We talk for buttons in the find bar :)
My bad, sorry.

User avatar
mozart78
Moon lover
Moon lover
Posts: 99
Joined: 2014-08-02, 14:29
Location: Bulgaria

Re: Rearrange findbar buttons

Unread post by mozart78 » 2014-08-05, 11:19

You are welcome :) For me is a liitle bit difficult to explain in english what I want to say and I hope we understand each oder :)
Image

Supernova

Re: Rearrange findbar buttons

Unread post by Supernova » 2014-08-05, 16:29

As mikeysc, I have next at left of previous by default on my findbar.

User avatar
mozart78
Moon lover
Moon lover
Posts: 99
Joined: 2014-08-02, 14:29
Location: Bulgaria

Re: Rearrange findbar buttons

Unread post by mozart78 » 2014-08-05, 16:35

Sorry, it's my fault, I forgot to say that this is for Linux version. Now I checked it on Windows and there it is ok, but on Linux I can't rearrange them.
Image

User avatar
mozart78
Moon lover
Moon lover
Posts: 99
Joined: 2014-08-02, 14:29
Location: Bulgaria

Re: Rearrange findbar buttons

Unread post by mozart78 » 2014-08-08, 14:30

Do I have to write in Linux section of the forum?
Image

jumba

Re: Rearrange findbar buttons

Unread post by jumba » 2014-08-08, 15:04

Moving this topic would be better.

So, linux PM find bar layout is different than what is in windows. On linux the order of the buttons is "< Previous > Next", and on windows it's "▼ Next ▲ Previous". I wonder why they are different? ;)

To rearrange the buttons the find bar would need to be customizable (or maybe using some userchrome.css hacks).

User avatar
mozart78
Moon lover
Moon lover
Posts: 99
Joined: 2014-08-02, 14:29
Location: Bulgaria

Re: Rearrange findbar buttons

Unread post by mozart78 » 2014-08-08, 15:17

Yeah, it's obvious why they are in this order, but I seek a way to rearrange them. I use userchrome "hack" on windows and it works, but on Linux it won't:

Code: Select all

findbar toolbarbutton[anonid="find-next"] label:after { content: 'Next' !important; }
findbar toolbarbutton[anonid="find-previous"] label:after { content: 'Prev' !important; }
findbar toolbarbutton[anonid="find-next"] label:after,
findbar toolbarbutton[anonid="find-previous"] label:after { margin-left: 2px !important; }

@-moz-document url("chrome://browser/content/browser.xul") {
.findbar-container spacer { visibility: collapse }
.findbar-closebutton { -moz-box-ordinal-group: 0 !important; }
.findbar-find-previous.tabbable { -moz-box-ordinal-group: 2 !important; }

@namespace url("http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul"); /* only needed once */

#TabsToolbar{-moz-box-ordinal-group:10000!important}
Image

jumba

Re: Rearrange findbar buttons

Unread post by jumba » 2014-08-08, 15:59

But not that obvious why the order is not the same on both OS. Also you shouldn't need to use the "fix" for PM on windows since the buttons are already on the right order which you want.

But here is a hack for you! :)

Code: Select all

@namespace url(http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul);
#FindToolbar :first-child { -moz-box-ordinal-group: 0!important; }
#FindToolbar :first-child ~ * { -moz-box-ordinal-group: 1!important; }
#FindToolbar .findbar-find-previous { -moz-box-ordinal-group: 3!important; }
#FindToolbar .findbar-find-previous ~ * { -moz-box-ordinal-group: 4!important; }
#FindToolbar .findbar-find-next { -moz-box-ordinal-group: 2!important; }

User avatar
mozart78
Moon lover
Moon lover
Posts: 99
Joined: 2014-08-02, 14:29
Location: Bulgaria

Re: Rearrange findbar buttons

Unread post by mozart78 » 2014-08-08, 16:21

Thank you, thank you, thank you!!! It works!!! I'm VERY happy now :mrgreen:

I apologize for inconvenience, but is it possible for you to give me the code for renaming the "Previous" button to "Prev"? Thank you once again Image
Image

jumba

Re: Rearrange findbar buttons

Unread post by jumba » 2014-08-08, 17:02

No problem! 8-)

Code: Select all

#FindToolbar .findbar-find-previous .toolbarbutton-text { display: none!important; }
#FindToolbar .findbar-find-previous:after { content: "Prev"; }

User avatar
mozart78
Moon lover
Moon lover
Posts: 99
Joined: 2014-08-02, 14:29
Location: Bulgaria

Re: Rearrange findbar buttons

Unread post by mozart78 » 2014-08-08, 21:08

You are GOD! Thank you very, very much! Appreciated!
Image

Locked