diff --git a/README.md b/README.md
index 79012f66..f8764be5 100644
--- a/README.md
+++ b/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...]`
+ Install OPTIONS
+
+```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.
+```
+
+
+
###
Change theme color and accent
diff --git a/install.sh b/install.sh
index 53168cb6..28210b38 100755
--- a/install.sh
+++ b/install.sh
@@ -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 ;;
diff --git a/lib-install.sh b/lib-install.sh
index ee2a7785..ca9cb22f 100755
--- a/lib-install.sh
+++ b/lib-install.sh
@@ -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 ..."
diff --git a/src/sass/_theme-options.scss b/src/sass/_theme-options.scss
index 6a60538b..39ae8a9f 100644
--- a/src/sass/_theme-options.scss
+++ b/src/sass/_theme-options.scss
@@ -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;
diff --git a/src/sass/gtk/_applications-3.0.scss b/src/sass/gtk/_applications-3.0.scss
index 4729ec82..64e3f4a6 100644
--- a/src/sass/gtk/_applications-3.0.scss
+++ b/src/sass/gtk/_applications-3.0.scss
@@ -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%);
}
}