Moved rest of resources to user dir
This commit is contained in:
File diff suppressed because it is too large
Load Diff
Binary file not shown.
Before Width: | Height: | Size: 16 KiB |
Binary file not shown.
Before Width: | Height: | Size: 40 KiB |
@@ -1,67 +0,0 @@
|
||||
/* Set fm to have transparent window */
|
||||
box,
|
||||
iconview,
|
||||
notebook,
|
||||
paned,
|
||||
stack,
|
||||
scrolledwindow,
|
||||
treeview.view,
|
||||
.content-view,
|
||||
.view {
|
||||
background: rgba(19, 21, 25, 0.14);
|
||||
color: rgba(255, 255, 255, 1);
|
||||
}
|
||||
|
||||
notebook > header > tabs > tab:checked {
|
||||
/* Neon Blue 00e8ff */
|
||||
background-color: rgba(0, 232, 255, 0.2);
|
||||
/* Dark Bergundy */
|
||||
/* background-color: rgba(116, 0, 0, 0.25); */
|
||||
|
||||
color: rgba(255, 255, 255, 0.8);
|
||||
}
|
||||
|
||||
#message_view {
|
||||
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:hover {
|
||||
box-shadow: inset 0 0 0 9999px rgba(21, 158, 167, 0.57);
|
||||
color: rgba(255, 255, 255, 0.5);
|
||||
}
|
||||
|
||||
|
||||
/* * {
|
||||
background: rgba(0, 0, 0, 0.14);
|
||||
color: rgba(255, 255, 255, 1);
|
||||
} */
|
||||
|
||||
/* * selection {
|
||||
background-color: rgba(116, 0, 0, 0.65);
|
||||
color: rgba(255, 255, 255, 0.5);
|
||||
} */
|
||||
|
||||
/* Rubberband coloring */
|
||||
/* .rubberband,
|
||||
rubberband,
|
||||
flowbox rubberband,
|
||||
treeview.view rubberband,
|
||||
.content-view rubberband,
|
||||
.content-view .rubberband,
|
||||
XfdesktopIconView.view .rubberband {
|
||||
border: 1px solid #6c6c6c;
|
||||
background-color: rgba(21, 158, 167, 0.57);
|
||||
}
|
||||
|
||||
XfdesktopIconView.view:active {
|
||||
background-color: rgba(172, 102, 21, 1);
|
||||
} */
|
@@ -1,5 +1,6 @@
|
||||
# Python imports
|
||||
import os
|
||||
from os import path
|
||||
|
||||
# Gtk imports
|
||||
import gi, cairo
|
||||
@@ -16,30 +17,38 @@ from . import Logger
|
||||
|
||||
class Settings:
|
||||
def __init__(self):
|
||||
self.SCRIPT_PTH = os.path.dirname(os.path.realpath(__file__))
|
||||
self.gladefile = self.SCRIPT_PTH + "/../resources/Main_Window.glade"
|
||||
self.cssFile = self.SCRIPT_PTH + '/../resources/stylesheet.css'
|
||||
self.logger = Logger().get_logger()
|
||||
self.SCRIPT_PTH = os.path.dirname(os.path.realpath(__file__))
|
||||
self.USER_HOME = path.expanduser('~')
|
||||
self.CONFIG_PATH = self.USER_HOME + "/.config/solarfm"
|
||||
|
||||
self.builder = gtk.Builder()
|
||||
self.gladefile = self.CONFIG_PATH + "/Main_Window.glade"
|
||||
self.cssFile = self.CONFIG_PATH + '/stylesheet.css'
|
||||
self.logger = Logger().get_logger()
|
||||
|
||||
self.builder = gtk.Builder()
|
||||
self.builder.add_from_file(self.gladefile)
|
||||
self.mainWindow = None
|
||||
|
||||
self.DEFAULT_ICONS = self.CONFIG_PATH + "/icons"
|
||||
self.window_icon = self.DEFAULT_ICONS + "/solarfm.png"
|
||||
self.main_window = None
|
||||
|
||||
|
||||
|
||||
|
||||
def createWindow(self):
|
||||
# Get window and connect signals
|
||||
self.mainWindow = self.builder.get_object("Main_Window")
|
||||
self.main_window = self.builder.get_object("Main_Window")
|
||||
self.setWindowData()
|
||||
|
||||
def setWindowData(self):
|
||||
screen = self.mainWindow.get_screen()
|
||||
self.main_window.set_icon_from_file(self.window_icon)
|
||||
screen = self.main_window.get_screen()
|
||||
visual = screen.get_rgba_visual()
|
||||
|
||||
if visual != None and screen.is_composited():
|
||||
self.mainWindow.set_visual(visual)
|
||||
self.mainWindow.set_app_paintable(True)
|
||||
self.mainWindow.connect("draw", self.area_draw)
|
||||
self.main_window.set_visual(visual)
|
||||
self.main_window.set_app_paintable(True)
|
||||
self.main_window.connect("draw", self.area_draw)
|
||||
|
||||
# bind css file
|
||||
cssProvider = gtk.CssProvider()
|
||||
@@ -54,7 +63,7 @@ class Settings:
|
||||
cr.paint()
|
||||
cr.set_operator(cairo.OPERATOR_OVER)
|
||||
|
||||
def getMainWindow(self): return self.mainWindow
|
||||
def getMainWindow(self): return self.main_window
|
||||
|
||||
|
||||
def getMonitorData(self):
|
||||
|
Reference in New Issue
Block a user