Improved visual que of which notebook is active
This commit is contained in:
parent
27ceca4e75
commit
98feeabfa4
@ -17,6 +17,7 @@ notebook > header > tabs > tab:checked {
|
|||||||
background-color: rgba(0, 232, 255, 0.25);
|
background-color: rgba(0, 232, 255, 0.25);
|
||||||
/* Dark Bergundy */
|
/* Dark Bergundy */
|
||||||
/* background-color: rgba(116, 0, 0, 0.25); */
|
/* background-color: rgba(116, 0, 0, 0.25); */
|
||||||
|
|
||||||
color: rgba(255, 255, 255, 0.5);
|
color: rgba(255, 255, 255, 0.5);
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -24,6 +25,13 @@ notebook > header > tabs > tab:checked {
|
|||||||
font: 16px "Monospace";
|
font: 16px "Monospace";
|
||||||
}
|
}
|
||||||
|
|
||||||
|
.notebook-selected-focus {
|
||||||
|
/* Neon Blue 00e8ff border */
|
||||||
|
border: 2px solid rgba(0, 232, 255, 0.25);
|
||||||
|
/* Dark Bergundy */
|
||||||
|
/* border: 2px solid rgba(116, 0, 0, 0.64); */
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
.view:selected,
|
.view:selected,
|
||||||
.view:selected:hover {
|
.view:selected:hover {
|
||||||
|
@ -3,14 +3,12 @@ import copy
|
|||||||
from os.path import isdir, isfile
|
from os.path import isdir, isfile
|
||||||
|
|
||||||
|
|
||||||
# Lib imports
|
# Gtk imports
|
||||||
from . import TabMixin
|
|
||||||
|
|
||||||
import gi
|
import gi
|
||||||
|
|
||||||
from gi.repository import Gdk
|
from gi.repository import Gdk
|
||||||
|
|
||||||
# Application imports
|
# Application imports
|
||||||
|
from . import TabMixin
|
||||||
from . import WidgetMixin
|
from . import WidgetMixin
|
||||||
|
|
||||||
|
|
||||||
@ -54,8 +52,17 @@ class WindowMixin(TabMixin):
|
|||||||
|
|
||||||
def set_window_title(self):
|
def set_window_title(self):
|
||||||
wid, tid = self.window_controller.get_active_data()
|
wid, tid = self.window_controller.get_active_data()
|
||||||
|
notebook = self.builder.get_object(f"window_{wid}")
|
||||||
view = self.get_fm_window(wid).get_view_by_id(tid)
|
view = self.get_fm_window(wid).get_view_by_id(tid)
|
||||||
dir = view.get_current_directory()
|
dir = view.get_current_directory()
|
||||||
|
|
||||||
|
for _notebook in self.notebooks:
|
||||||
|
ctx = _notebook.get_style_context()
|
||||||
|
ctx.remove_class("notebook-selected-focus")
|
||||||
|
|
||||||
|
ctx = notebook.get_style_context()
|
||||||
|
ctx.add_class("notebook-selected-focus")
|
||||||
|
|
||||||
self.window.set_title("PyFM ~ " + dir)
|
self.window.set_title("PyFM ~ " + dir)
|
||||||
self.set_bottom_labels(view)
|
self.set_bottom_labels(view)
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user