View Single Post
Old 02-16-2019, 09:37 PM   #14
KevinH
Sigil Developer
KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.
 
Posts: 8,892
Karma: 6120478
Join Date: Nov 2009
Device: many
Mac OS Missing Tab close icons - a quick fix

Okay, I have a workaround for this that should work for all Mac OS X users with the latest Sigil-0.9.11

Using a text editor please create the following text file:

qt_styles.qss

Notice the name must be an exact match: qt_styles.qss not .css

And add the following 2 lines to it:

Code:
QTabBar::close-button { background-image: url(:/qt-project.org/styles/commonstyle/images/standardbutton-closetab-16.png);}
QTabBar::close-button:hover { background-image: url(:/qt-project.org/styles/commonstyle/images/standardbutton-closetab-hover-16.png);}
Then copy that file to your Sigil Preferences folder which on a Mac can be found by Sigil->Preferences and hitting the Open Preferences Location button at the bottom of the window.

This should take you to /Users/YOURUSERID/Library/ApplicationSupport/sigil-ebook/sigil/

which is where you want to put the qt_styles.qss file you made.

Then exit Sigil completely and restart it.

You should now have close buttons back on your tabs (and official ones from qt as well)

This will fully workaround the bug in Qt for macOS in Qt 5.11.2

Hope this helps,

Kevin


Alternatively you can use the ones we have built into Sigil (which I personally find a bit uglier but ...) in your qt_styles.qss file:

Code:
QTabBar::close-button { background-image: url(:/main/widget-close-16.png);}
QTabBar::close-button:hover { background-image: url(:/main/widget-close-16.png);}
Quote:
Originally Posted by dynabook View Post
I am finding a weird effect on my Mac. The open file tabs have no "close" X and I have only been able to close the tabs by clicking around on the tab. I am running OS 10.14.2.
I have updated TCL to 8.6.8.0.
--MH

Last edited by KevinH; 02-16-2019 at 10:19 PM.
KevinH is online now