diff --git a/src/main/python/plotlyst/view/novel_view.py b/src/main/python/plotlyst/view/novel_view.py
index 0c9ced171..9aadb51d2 100644
--- a/src/main/python/plotlyst/view/novel_view.py
+++ b/src/main/python/plotlyst/view/novel_view.py
@@ -47,6 +47,7 @@ def __init__(self, novel: Novel):
self.ui = Ui_NovelView()
self.ui.setupUi(self.widget)
+ self.ui.btnEvents.setIcon(IconRegistry.from_name('ri.mind-map', color='white'))
self.ui.btnStructure.setIcon(IconRegistry.story_structure_icon(color='white'))
self.ui.btnPlot.setIcon(IconRegistry.plot_icon(color='white'))
self.ui.btnSynopsis.setIcon(IconRegistry.from_name('fa5s.scroll', 'white'))
@@ -121,12 +122,13 @@ def __init__(self, novel: Novel):
self.ui.wdgTagsContainer.setNovel(self.novel)
- link_buttons_to_pages(self.ui.stackedWidget, [(self.ui.btnStructure, self.ui.pageStructure),
+ link_buttons_to_pages(self.ui.stackedWidget, [(self.ui.btnEvents, self.ui.pageEvents),
+ (self.ui.btnStructure, self.ui.pageStructure),
(self.ui.btnPlot, self.ui.pagePlot),
(self.ui.btnSynopsis, self.ui.pageSynopsis),
(self.ui.btnTags, self.ui.pageTags),
(self.ui.btnSettings, self.ui.pageSettings)])
- self.ui.btnStructure.setChecked(True)
+ self.ui.btnEvents.setChecked(True)
for btn in self.ui.buttonGroup.buttons():
btn.installEventFilter(OpacityEventFilter(parent=btn, leaveOpacity=0.7, ignoreCheckedButton=True))
diff --git a/src/main/python/plotlyst/view/style/button.py b/src/main/python/plotlyst/view/style/button.py
index 19ddf867b..b3594e72a 100644
--- a/src/main/python/plotlyst/view/style/button.py
+++ b/src/main/python/plotlyst/view/style/button.py
@@ -108,6 +108,8 @@
border-radius: 6px;
color: white;
padding: 2px;
+ padding-left: 4px;
+ padding-right: 4px;
font: bold;
}
QPushButton:disabled[top-level-nav=true] {
diff --git a/ui/novel_view.ui b/ui/novel_view.ui
index d55b707ec..ec4c24411 100644
--- a/ui/novel_view.ui
+++ b/ui/novel_view.ui
@@ -39,7 +39,7 @@
9
- 20
+ 10
0
@@ -162,6 +162,34 @@
+ -
+
+
+
+ 0
+ 0
+
+
+
+ PointingHandCursor
+
+
+ Events
+
+
+ true
+
+
+ false
+
+
+ true
+
+
+ buttonGroup
+
+
+
-
@@ -174,7 +202,7 @@
PointingHandCursor
- Story structure
+ Structure
true
@@ -333,7 +361,7 @@
-
- 3
+ 4
@@ -595,7 +623,7 @@
0
0
642
- 455
+ 453
@@ -609,6 +637,70 @@
+
+
+
+ 0
+
+
+ 0
+
+
+ 0
+
+
+ 0
+
+
+ 0
+
+ -
+
+
+ Qt::Horizontal
+
+
+
+
+ 0
+
+
+ 0
+
+
+ 0
+
+
+ 0
+
+
+ 0
+
+
+
+
+
+
+ 0
+
+
+ 0
+
+
+ 0
+
+
+ 0
+
+
+ 0
+
+
+
+
+
+
+