* Added tab bar to top of main window with UI/shortcuts similar to web browsers * ComponentManager offers components for 2 use-cases: application and tab * Application components: log view (status/errors), bookmarks, screen search, status bar, tabs, tooltips, dialogs and all tab views disabled * Tab components: graph, code, history and search * When a project is loaded there is always at least one tab, otherwise there is none * Each tab replaces the application views of the same name in the main layout when activated * Each tab has it's own TaskScheduler, to process tasks independent from other tabs * The application has a global TaskScheduler for application wide tasks * The singloton class TaskManager is responsible for managing the TaskSchedulers * MessageListeners and Messages hold an optional schedulerId, both must be set to only send to a specific TaskScheduler * Bookmark buttons where split off into a separate view per tab, bookmark managemement is done in the application * History menu processing is done by the QtMainWindow now * Screen search is an application component, the responders are always changed to the active tab * Plugin messages are opened in a new tab * Symbols can be opened in a new tab via middle click/context menu in graph, code, history dropdown * Full text index creation is mutexed now in PersistenStorage to make it fully thread-safe * All tabs are closed when switching projects * Tab contents are only animated when visible fortune cookie message = Catch your lucky star!
62 lines
1.3 KiB
CSS
62 lines
1.3 KiB
CSS
QToolTip {
|
|
background-color: #E0E0E0;
|
|
color: black;
|
|
font-size: <setting:font_size>px;
|
|
}
|
|
|
|
QPushButton {
|
|
outline: none;
|
|
}
|
|
|
|
QMainWindow::separator {
|
|
background: <color:window/separator>;
|
|
width: 1px;
|
|
}
|
|
|
|
QToolBar {
|
|
border: none;
|
|
}
|
|
|
|
QDockWidget {
|
|
color: <color:window/dock/text>;
|
|
font-size: 10pt;
|
|
titlebar-close-icon: url(<setting:gui_path>main/images/close_<color:window/dock/icon_type>.png);
|
|
titlebar-normal-icon: url(<setting:gui_path>main/images/float_<color:window/dock/icon_type>.png);
|
|
}
|
|
|
|
QDockWidget::title {
|
|
border-bottom: 1px solid <color:window/dock/line>;
|
|
background: <color:window/dock/background>;
|
|
text-align: center;
|
|
padding-top: 1px;
|
|
}
|
|
|
|
QDockWidget::close-button, QDockWidget::float-button {
|
|
background: transparent;
|
|
border: <platform_wml:0|0|1>px solid transparent;
|
|
icon-size: 12px;
|
|
margin-top: <platform_wml:0|2|2>px;
|
|
}
|
|
|
|
QDockWidget::close-button {
|
|
margin-left: <platform_wml:0|2|0>px;
|
|
}
|
|
|
|
QDockWidget::float-button {
|
|
margin-right: <platform_wml:0|2|0>px;
|
|
}
|
|
|
|
#screen_button {
|
|
background-color: <color:window/button/background>;
|
|
border: 1px solid <color:window/button/border>;
|
|
border-radius: 5px;
|
|
color: <color:window/button/text>;
|
|
font-size: <setting:font_size>px;
|
|
padding: 4px 6px;
|
|
margin: 2px 0px;
|
|
}
|
|
|
|
#screen_button:hover {
|
|
border: 1px solid <color:window/button/border_hover>;
|
|
}
|