ui: Added custom trail dialog (issue #249)

* open custom trail dialg via button in top of trail controls
* search from symbol to symbol or all referenced/referencing of symbol
* define search depth with slider
* define horizontal/vertical layout
* define node and edge types
* renamed depth graph to trail in graph ui
* added custom trail UI tests

fortune cookie message = A happy surprise is waiting for you.
This commit is contained in:
Eberhard Graether
2019-07-29 11:25:34 +02:00
parent 6a2c59f3e5
commit 68c9782e33
54 changed files with 1740 additions and 130 deletions
@@ -593,4 +593,25 @@
<icon_disabled>#666666</icon_disabled>
</button>
</screen_search>
<custom_trail>
<background>#494949</background>
<alt_background>#808080</alt_background>
<separator>#CCCCCC</separator>
<text>#FFFFFF</text>
<text_disabled>darkgrey</text_disabled>
<background_disabled>#696969</background_disabled>
<button>
<default>
<text>#FFFFFF</text>
<background>#494949</background>
<border>#FFFFFF</border>
</default>
<hover>
<text>#494949</text>
<background>#FFFFFF</background>
<border>#FFFFFF</border>
</hover>
</button>
</custom_trail>
</config>
+22 -1
View File
@@ -463,7 +463,7 @@
<call>
<normal>#F4BC3D</normal>
<trail_focus>#878787</trail_focus>
<trail_focus>#F56B3D</trail_focus>
</call>
<use>
@@ -567,4 +567,25 @@
<icon_disabled>#CECECE</icon_disabled>
</button>
</screen_search>
<custom_trail>
<background>white</background>
<alt_background>#F5F5F5</alt_background>
<separator>#C0C0C0</separator>
<text>black</text>
<text_disabled>#A0A0A0</text_disabled>
<background_disabled>#F2F2F2</background_disabled>
<button>
<default>
<text>black</text>
<background>white</background>
<border>lightgray</border>
</default>
<hover>
<text>white</text>
<background>#2D3C86</background>
<border>lightgray</border>
</hover>
</button>
</custom_trail>
</config>
+21
View File
@@ -570,4 +570,25 @@
<icon_disabled>#555555</icon_disabled>
</button>
</screen_search>
<custom_trail>
<background>#272728</background>
<alt_background>#555555</alt_background>
<separator>#CCC</separator>
<text>#F7F7F7</text>
<text_disabled>darkgrey</text_disabled>
<background_disabled>#474748</background_disabled>
<button>
<default>
<text>#F7F7F7</text>
<background>#272728</background>
<border>#F7F7F7</border>
</default>
<hover>
<text>#272728</text>
<background>#F7F7F7</background>
<border>#F7F7F7</border>
</hover>
</button>
</custom_trail>
</config>
@@ -0,0 +1,64 @@
* {
color: <color:custom_trail/text>;
}
#panelA {
background: <color:custom_trail/background>;
}
#panelB, #panelB2 {
background: <color:custom_trail/alt_background>;
border-top: 1px solid <color:custom_trail/separator>;
border-bottom: 1px solid <color:custom_trail/separator>;
}
#panelB2 {
border-bottom: none
}
#search_box_container {
border-color: <color:custom_trail/separator>;
border-radius: 8px;
border-width: 1px;
}
#search_box_container:disabled {
background: <color:custom_trail/background_disabled>;
border-color: <color:custom_trail/background_disabled>;
}
#search_box:disabled {
color: <color:custom_trail/text_disabled>;
}
#button, #button_small {
background: <color:custom_trail/button/default/background>;
border: 1px solid <color:custom_trail/button/default/border>;
border-radius: 8px;
color: <color:custom_trail/button/default/text>;
padding: 3px 8px 2px;
font-size: <setting:font_size+1>px;
min-width: 5em;
}
#button_small {
border-radius: 6px;
font-size: <setting:font_size-1>px;
min-width: 4em;
}
#button:hover, #button_small:hover {
background: <color:custom_trail/button/hover/background>;
border-color: <color:custom_trail/button/hover/border>;
color: <color:custom_trail/button/hover/text>;
}
#button:disabled, #button_small:disabled {
background: <color:custom_trail/button/disabled/background>;
border-color: <color:custom_trail/button/disabled/border>;
color: <color:custom_trail/button/disabled/text>;
}
#error {
color: red;
}
Binary file not shown.

After

Width:  |  Height:  |  Size: 532 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 3.1 KiB

+4 -4
View File
@@ -11,7 +11,7 @@
background-color: transparent;
}
QWidget#search_box_container {
#search_box_container {
background: <color:search/field/background>;
border: 2px solid <color:search/field/border>;
border-bottom-left-radius: 12px;
@@ -20,19 +20,19 @@ QWidget#search_box_container {
margin-right: 2px;
}
QLineEdit#search_box {
#search_box {
background-color: transparent;
border: none;
color: <color:search/field/text>;
selection-background-color: <color:search/field/highlight>;
}
QWidget#search_box_highlight {
#search_box_highlight {
background-color: <color:search/field/highlight>;
border: none;
}
QAbstractItemView#search_box_popup {
#search_box_popup {
background-color: <color:search/popup/background>;
border: 1px solid <color:search/popup/line>;
color: <color:search/popup/text>;