mirror of
https://github.com/imarkoff/Marble-shell-theme.git
synced 2025-09-17 08:47:55 -07:00
Panel tweaks, trying to separate shell styles
This commit is contained in:
1431
css/gnome.css
Normal file
1431
css/gnome.css
Normal file
File diff suppressed because it is too large
Load Diff
105
css/panel.css
Normal file
105
css/panel.css
Normal file
@@ -0,0 +1,105 @@
|
||||
#panel {
|
||||
background-color: BACKGROUND-COLOR;
|
||||
height: 38px;
|
||||
font-size: 14px;
|
||||
}
|
||||
|
||||
#panel:overview {
|
||||
background-color: transparent;
|
||||
}
|
||||
|
||||
#panel .screencast-indicator,
|
||||
#panel .remote-access-indicator {
|
||||
color: #cd9309;
|
||||
}
|
||||
|
||||
#panel .panel-button.screen-recording-indicator {
|
||||
background: #c01c28;
|
||||
}
|
||||
|
||||
#panel .panel-button.screen-sharing-indicator {
|
||||
background: #cd9309;
|
||||
}
|
||||
|
||||
#panel .panel-button.screen-recording-indicator:hover {
|
||||
background: rgba(192, 28, 40, 0.9);
|
||||
}
|
||||
|
||||
#panel .panel-button.screen-sharing-indicator:hover {
|
||||
background: rgba(205, 147, 9, 0.9);
|
||||
}
|
||||
|
||||
.panel-button,
|
||||
.clock,
|
||||
.clock-display StIcon {
|
||||
color: TEXT-PRIMARY-COLOR;
|
||||
border-radius: 14px;
|
||||
border: 4px solid transparent;
|
||||
background-color: ACCENT-DISABLED-COLOR;
|
||||
box-shadow: inset 0 0 0 1px BORDER-SHADOW;
|
||||
}
|
||||
|
||||
.clock-display StIcon {
|
||||
padding: 8px;
|
||||
margin: 0;
|
||||
}
|
||||
|
||||
#panel .power-status.panel-status-indicators-box StIcon {
|
||||
font-size: 14px;
|
||||
}
|
||||
|
||||
.panel-button:hover,
|
||||
.panel-button:hover .clock,
|
||||
.panel-button:active,
|
||||
.panel-button:overview,
|
||||
/* activites */
|
||||
.panel-button:active .clock {
|
||||
background-color: ACCENT-DISABLED_HOVER;
|
||||
}
|
||||
|
||||
#panel .power-status.panel-status-indicators-box {
|
||||
font-size: 12px;
|
||||
}
|
||||
|
||||
/* date-menu-mod */
|
||||
.clock-display {
|
||||
background-color: transparent !important;
|
||||
box-shadow: none !important;
|
||||
border: none !important;
|
||||
}
|
||||
|
||||
.clock {
|
||||
margin: 0 !important;
|
||||
}
|
||||
|
||||
/* clock fix by Aylur's widgets */
|
||||
#panel .panel-button.clock-display {
|
||||
-natural-hpadding: 0;
|
||||
-minimum-hpadding: 0;
|
||||
}
|
||||
|
||||
.datemenu-calendar-column {
|
||||
padding-left: 0;
|
||||
padding-right: 0;
|
||||
}
|
||||
|
||||
/* if notifications are hidden, make the column centered */
|
||||
.datemenu-user {
|
||||
padding: 30px;
|
||||
}
|
||||
|
||||
.datemenu-user>StButton {
|
||||
width: 160px;
|
||||
height: 160px;
|
||||
padding: 2px;
|
||||
border-radius: 99px;
|
||||
margin-bottom: 12px;
|
||||
}
|
||||
|
||||
.datemenu-user>StButton>StWidget {
|
||||
border-radius: 99px;
|
||||
}
|
||||
|
||||
.datemenu-levels {
|
||||
spacing: 8px;
|
||||
}
|
File diff suppressed because it is too large
Load Diff
32
install.py
32
install.py
@@ -84,6 +84,19 @@ def apply_theme_to_file(hue, destination, theme_mode, apply_file, sat=None):
|
||||
file.write(edit_file)
|
||||
|
||||
|
||||
def generate_file():
|
||||
gnome_shell = open("./gnome-shell/gnome-shell.css", "w")
|
||||
|
||||
for file in os.listdir("./css/"):
|
||||
gnome_shell.write(open('./css/'+ file).read() + '\n')
|
||||
|
||||
gnome_shell.close()
|
||||
|
||||
|
||||
def write_to_file(file, edit_file):
|
||||
open(edit_file, 'a').write('\n' + open(file).read())
|
||||
|
||||
|
||||
def apply_theme(hue, destination, theme_mode, sat=None):
|
||||
"""
|
||||
Apply theme to all files listed in "apply-theme-files" (colors.json)
|
||||
@@ -111,6 +124,7 @@ def install_color(hue, name, theme_mode, sat=None):
|
||||
try:
|
||||
for mode in theme_mode:
|
||||
copy_files("./gnome-shell", destination_return(name, mode))
|
||||
|
||||
apply_theme(hue, destination_return(name, mode), mode, sat=sat)
|
||||
|
||||
except Exception as err:
|
||||
@@ -118,6 +132,7 @@ def install_color(hue, name, theme_mode, sat=None):
|
||||
|
||||
else:
|
||||
print("Done.")
|
||||
os.remove("./gnome-shell/gnome-shell.css")
|
||||
|
||||
|
||||
def remove_files():
|
||||
@@ -201,6 +216,12 @@ def main():
|
||||
metavar='(0 - 360)')
|
||||
custom_args.add_argument('--name', nargs='?', help='theme name (optional)')
|
||||
|
||||
# Add arguments for panel tweaks
|
||||
panel_args = parser.add_argument_group('Panel tweaks')
|
||||
panel_args.add_argument('--def_panel_size', action='store_true', help='set default panel size')
|
||||
panel_args.add_argument('--no_pill', action='store_true', help='remove panel button background')
|
||||
panel_args.add_argument('--panel_text', action='store_true', help='custom panel HEXA text color')
|
||||
|
||||
# Add arguments for optional theme tweaks
|
||||
color_tweaks = parser.add_argument_group('Optional theme tweaks')
|
||||
color_tweaks.add_argument('--mode', choices=['light', 'dark'], help='select a specific theme mode to install')
|
||||
@@ -211,6 +232,15 @@ def main():
|
||||
|
||||
mode = [args.mode] if args.mode else ['light', 'dark']
|
||||
|
||||
generate_file()
|
||||
|
||||
if args.def_panel_size:
|
||||
write_to_file("./tweaks/panel/def-size.css", "./gnome-shell/gnome-shell.css")
|
||||
|
||||
if args.no_pill:
|
||||
write_to_file("./tweaks/panel/no-pill.css", "./gnome-shell/gnome-shell.css")
|
||||
|
||||
|
||||
# Process the arguments and perform the installation accordingly
|
||||
if args.remove:
|
||||
remove_files()
|
||||
@@ -242,6 +272,6 @@ def main():
|
||||
|
||||
|
||||
if __name__ == "__main__":
|
||||
colors = json.load(open("colors.json")) # used as database for replacing colors, files which must be generated
|
||||
colors = json.load(open("colors.json")) # used as database for replacing colors
|
||||
|
||||
main()
|
||||
|
10
tweaks/panel/def-size.css
Normal file
10
tweaks/panel/def-size.css
Normal file
@@ -0,0 +1,10 @@
|
||||
/* default panel size */
|
||||
#panel{
|
||||
height: 2.2em;
|
||||
font-size: 15px;
|
||||
}
|
||||
.panel-button,
|
||||
.clock,
|
||||
.clock-display StIcon {
|
||||
border-radius: 99px;
|
||||
}
|
14
tweaks/panel/no-pill.css
Normal file
14
tweaks/panel/no-pill.css
Normal file
@@ -0,0 +1,14 @@
|
||||
.panel-button,
|
||||
.clock,
|
||||
.clock-display StIcon {
|
||||
background-color: transparent;
|
||||
box-shadow: none;
|
||||
}
|
||||
.panel-button:hover,
|
||||
.panel-button:hover .clock,
|
||||
.panel-button:active,
|
||||
.panel-button:overview, /* activites */
|
||||
.panel-button:active .clock {
|
||||
background-color: ACCENT-DISABLED_HOVER;
|
||||
box-shadow: inset 0 0 0 1px BORDER-SHADOW;
|
||||
}
|
Reference in New Issue
Block a user