update
This commit is contained in:
parent
aadc1b9ebc
commit
58ac00f3ef
5 changed files with 88 additions and 6 deletions
40
README.md
40
README.md
|
@ -49,6 +49,46 @@ GNOME Shell (Pantheon), Cinnamon, XFWM (XFCE), Metacity, and Plank themes.
|
|||
## There's so many customizations you can do!
|
||||
Usage: `./install.sh [OPTIONS...]`
|
||||
|
||||
<details> <summary> Install OPTIONS </summary>
|
||||
|
||||
```bash
|
||||
-d, --dest [DIR] # Set destination directory. Default is '/home/vince/.themes'
|
||||
|
||||
-n, --name [NAME] # Set theme name. Default is 'WhiteSur'
|
||||
|
||||
-o, --opacity [normal|solid] # Set theme opacity variants. Repeatable. Default is all variants
|
||||
|
||||
-c, --color [light|dark] # Set theme color variants. Repeatable. Default is all variants
|
||||
|
||||
-a, --alt [normal|alt|all] # Set window control buttons variant. Repeatable. Default is 'normal'
|
||||
|
||||
-t, --theme [default|blue|purple|pink|red|orange|yellow|green|grey|all] # Set theme accent color. Repeatable. Default is BigSur-like theme
|
||||
|
||||
-p, --panel [default|30|45|60|75] # Set panel transparency. Default is 15%
|
||||
|
||||
-s, --size [default|220|240|260|280] # Set Nautilus sidebar minimum width. Default is 200px
|
||||
|
||||
-i, --icon [standard|simple|gnome|ubuntu|arch|manjaro|fedora|debian|void] # Set 'Activities' icon. Default is 'standard'
|
||||
|
||||
-b, --background [default|blank|IMAGE_PATH] # Set gnome-shell background image. Default is BigSur-like wallpaper
|
||||
|
||||
-N, --nautilus-style [default|stable|mojave|glassy] # Set Nautilus style. Default is stable (stabled sidebar)
|
||||
|
||||
--round, --roundedmaxwindow # Set maximized window to rounded. Default is square
|
||||
|
||||
--right, --rightplacement # Set Nautilus titlebutton placement style to right. Default is left
|
||||
|
||||
--normal, --normalshowapps # Set gnome-shell show apps button style to normal. Default is bigsur
|
||||
|
||||
--dialog, --interactive # Run this installer interactively, with dialogs.
|
||||
|
||||
-r, --remove, -u, --uninstall # Remove all installed WhiteSur themes.
|
||||
|
||||
-h, --help # Show this help.
|
||||
```
|
||||
|
||||
</details>
|
||||
|
||||
### <p align="center"> <b> Change theme color and accent </b> </p>
|
||||
<p align="center"> <img src="docs/colors-themes.png"/> </p>
|
||||
|
||||
|
|
|
@ -35,7 +35,8 @@ usage() {
|
|||
helpify "-i, --icon" "[$(IFS='|'; echo "${ICON_VARIANTS[*]}")]" "Set 'Activities' icon" "Default is 'standard'"
|
||||
helpify "-b, --background" "[default|blank|IMAGE_PATH]" "Set gnome-shell background image" "Default is BigSur-like wallpaper"
|
||||
helpify "-N, --nautilus-style" "[$(IFS='|'; echo "${NAUTILUS_STYLE_VARIANTS[*]}")]" "Set Nautilus style" "Default is BigSur-like style"
|
||||
helpify "-R, --round" "" "Set maximized window to rounded" "Default is square"
|
||||
helpify "--round, --roundedmaxwindow" "" "Set maximized window to rounded" "Default is square"
|
||||
helpify "--right, --rightplacement" "" "Set Nautilus titlebutton placement style to right" "Default is left"
|
||||
helpify "--normal, --normalshowapps" "" "Set gnome-shell show apps button style to normal" "Default is bigsur"
|
||||
helpify "--dialog, --interactive" "" "Run this installer interactively, with dialogs" ""
|
||||
helpify "-r, --remove, -u, --uninstall" "" "Remove all installed ${THEME_NAME} themes" ""
|
||||
|
@ -66,7 +67,9 @@ while [[ $# -gt 0 ]]; do
|
|||
interactive='true'; shift ;;
|
||||
--normal|--normalshowapps)
|
||||
showapps_normal="true"; shift ;;
|
||||
-R|--round)
|
||||
--right|--rightplacement)
|
||||
right_placement="true"; shift ;;
|
||||
--round|--roundedmaxwindow)
|
||||
max_round="true"; shift ;;
|
||||
-h|--help)
|
||||
need_help="true"; shift ;;
|
||||
|
|
|
@ -568,6 +568,12 @@ customize_theme() {
|
|||
sed ${SED_OPT} "/\$nautilus_style/s/stable/${nautilus_style}/" "${THEME_SRC_DIR}/sass/_theme-options-temp.scss"
|
||||
fi
|
||||
|
||||
# Change Nautilus titlebutton placement style
|
||||
if [[ "${right_placement}" == 'true' ]]; then
|
||||
prompt -w "Changing Nautilus titlebutton placement style ..."
|
||||
sed ${SED_OPT} "/\$placement/s/left/right/" "${THEME_SRC_DIR}/sass/_theme-options-temp.scss"
|
||||
fi
|
||||
|
||||
# Change maximized window radius
|
||||
if [[ "${max_round}" == 'true' ]]; then
|
||||
prompt -w "Changing maximized window style ..."
|
||||
|
|
|
@ -8,6 +8,9 @@ $sidebar_size: 200px;
|
|||
// Nautilus style
|
||||
$nautilus_style: 'stable';
|
||||
|
||||
// Nautilus titlebuttons placement
|
||||
$placement: 'left';
|
||||
|
||||
// Gnome-shell panel opacity
|
||||
$panel_opacity: 0.15;
|
||||
|
||||
|
|
|
@ -150,7 +150,19 @@ $nautilus_sidebar_image: image($dark_sidebar_bg);
|
|||
> box.horizontal:first-child { // move the search button to right side
|
||||
margin-right: -74px;
|
||||
|
||||
entry.search { margin-left: $container_padding; }
|
||||
@if $nautilus_style == 'default' or $nautilus_style == 'stable' {
|
||||
entry.search { margin-left: if($placement == 'left', $container_padding, $nautilus_sidebar_size - 74px); }
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@if $nautilus_style == 'default' or $nautilus_style == 'stable' {
|
||||
&.maximized {
|
||||
> deck > box.vertical > headerbar.titlebar {
|
||||
> box.horizontal:first-child { // move the search button to right side
|
||||
entry.search { margin-left: 0; }
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
@ -172,7 +184,25 @@ $nautilus_sidebar_image: image($dark_sidebar_bg);
|
|||
}
|
||||
|
||||
@if $nautilus_style == 'default' or $nautilus_style == 'stable' {
|
||||
> .linked.raised > button:first-child { margin-left: $nautilus_sidebar_size - 80px; }
|
||||
@if $placement == 'left' {
|
||||
> .linked.raised > button:first-child { margin-left: $nautilus_sidebar_size - 80px; }
|
||||
}
|
||||
@else {
|
||||
.path-bar-box { margin-left: $nautilus_sidebar_size - 80px; }
|
||||
entry.search { margin-left: if($placement == 'left', $container_padding, $nautilus_sidebar_size - 74px); }
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
&.maximized {
|
||||
> headerbar.titlebar,
|
||||
> deck > box.vertical > headerbar.titlebar {
|
||||
@if $nautilus_style == 'default' or $nautilus_style == 'stable' {
|
||||
@if $placement == 'right' {
|
||||
.path-bar-box { margin-left: 0; }
|
||||
entry.search { margin-left: 0; }
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -602,8 +632,8 @@ $disk_space_free: darken($bg_color, 3%);
|
|||
&.frame { border-width: 0; }
|
||||
|
||||
.places-treeview {
|
||||
// -NemoPlacesTreeView-disk-full-bg-color: $dark_solid_borders_color;
|
||||
// -NemoPlacesTreeView-disk-full-fg-color: lighten($progress_color, 5%);
|
||||
-NemoPlacesTreeView-disk-full-bg-color: $dark_solid_borders_color;
|
||||
-NemoPlacesTreeView-disk-full-fg-color: lighten($progress_color, 5%);
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue