Merge branch 'rokm-adwaita-fix'
This commit is contained in:
commit
438a924238
@ -139,6 +139,7 @@ Fixed
|
|||||||
mode.
|
mode.
|
||||||
- `:tab-detach` now fails correctly when there's only one tab open.
|
- `:tab-detach` now fails correctly when there's only one tab open.
|
||||||
- Various small issues with the command completion
|
- Various small issues with the command completion
|
||||||
|
- The tabbar now displays correctly with the Adwaita Qt theme
|
||||||
|
|
||||||
v0.8.3 (unreleased)
|
v0.8.3 (unreleased)
|
||||||
-------------------
|
-------------------
|
||||||
|
@ -238,6 +238,7 @@ Contributors, sorted by the number of commits in descending order:
|
|||||||
* Tim Harder
|
* Tim Harder
|
||||||
* Thiago Barroso Perrotta
|
* Thiago Barroso Perrotta
|
||||||
* Sorokin Alexei
|
* Sorokin Alexei
|
||||||
|
* Rok Mandeljc
|
||||||
* Noah Huesser
|
* Noah Huesser
|
||||||
* Moez Bouhlel
|
* Moez Bouhlel
|
||||||
* Matthias Lisin
|
* Matthias Lisin
|
||||||
|
@ -50,6 +50,7 @@ class TabWidget(QTabWidget):
|
|||||||
def __init__(self, win_id, parent=None):
|
def __init__(self, win_id, parent=None):
|
||||||
super().__init__(parent)
|
super().__init__(parent)
|
||||||
bar = TabBar(win_id)
|
bar = TabBar(win_id)
|
||||||
|
self.setStyle(TabBarStyle(self.style()))
|
||||||
self.setTabBar(bar)
|
self.setTabBar(bar)
|
||||||
bar.tabCloseRequested.connect(self.tabCloseRequested)
|
bar.tabCloseRequested.connect(self.tabCloseRequested)
|
||||||
bar.tabMoved.connect(functools.partial(
|
bar.tabMoved.connect(functools.partial(
|
||||||
@ -656,6 +657,12 @@ class TabBarStyle(QCommonStyle):
|
|||||||
if sr == QStyle.SE_TabBarTabText:
|
if sr == QStyle.SE_TabBarTabText:
|
||||||
layouts = self._tab_layout(opt)
|
layouts = self._tab_layout(opt)
|
||||||
return layouts.text
|
return layouts.text
|
||||||
|
elif sr == QStyle.SE_TabWidgetTabBar:
|
||||||
|
# Need to use super() because we also use super() to render
|
||||||
|
# element in drawControl(); otherwise, we may get bit by
|
||||||
|
# style differences...
|
||||||
|
rct = super().subElementRect(sr, opt, widget)
|
||||||
|
return rct
|
||||||
else:
|
else:
|
||||||
return self._style.subElementRect(sr, opt, widget)
|
return self._style.subElementRect(sr, opt, widget)
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user