/* -------------------------------------------------------------------------------- SearchField As a blue border is already added by Mac when the search field has the focus, there is no need to add it via the style sheet. Furthermore, as this blue border is rectangular, the search field does not have a border with a radius by default. -------------------------------------------------------------------------------- */ hxobjectsexplorer--SearchField { border: 1px solid #45474A; border-radius: 0px; padding-left: 17px; selection-background-color: darkgray; background-color: qlineargradient(x1: 0, y1: 0, x2: 0, y2: 1, stop: 0 #C7C7C7, stop: 0.2 #ECECEC, stop: 0.8 #ECECEC, stop: 1.0 #C7C7C7); background-image: url(icons:ObjectsExplorer/Search.png); background-position: left center; background-repeat: no-repeat; } hxobjectsexplorer--SearchField:focus { selection-background-color: #7AABD0; } /* -------------------------------------------------------------------------------- ObjectPopup tool buttons Auto raise mode is not well managed under Mac. It must be simulated via the style sheet. -------------------------------------------------------------------------------- */ hxobjectsexplorer--ObjectPopup QToolButton { border: none; background: none; margin: 1px; } hxobjectsexplorer--ObjectPopup QToolButton:hover { border: 1px solid #8D8D8D; background-color: qlineargradient(x1: 0, y1: 0, x2: 0, y2: 1, stop: 0 #A3B5CE, stop: 1.0 #E1E3E5); } hxobjectsexplorer--ObjectPopup QToolButton:pressed { border: 1px solid #8D8D8D; background-color: qlineargradient(x1: 0, y1: 0, x2: 0, y2: 1, stop: 0 #A3A3A3, stop: 1.0 #C7C7C7); padding-top: 2px; padding-left: 2px; } hxobjectsexplorer--ObjectPopup QToolButton:checked { border: 1px solid #8D8D8D; background-color: qlineargradient(x1: 0, y1: 0, x2: 0, y2: 1, stop: 0 #A3A3A3, stop: 1.0 #C7C7C7); } hxobjectsexplorer--ObjectPopup QToolButton[popupMode="1"] { padding-right: 20px; } hxobjectsexplorer--ObjectPopup QToolButton[popupMode="1"]::menu-button { border: none; background: transparent; width: 16px; } hxobjectsexplorer--ObjectPopup QToolButton[popupMode="1"]::menu-button:hover { border: 1px solid #8D8D8D; border-top-right-radius: 6px; border-bottom-right-radius: 6px; }