Skip to content

Commit

Permalink
updated code to whitesur 221021 697c64f
Browse files Browse the repository at this point in the history
  • Loading branch information
Aryan20 committed Oct 23, 2021
1 parent 199e761 commit a0cf4d1
Show file tree
Hide file tree
Showing 26 changed files with 785 additions and 164 deletions.
4 changes: 2 additions & 2 deletions INSTALL.md
Original file line number Diff line number Diff line change
Expand Up @@ -166,8 +166,8 @@ Usage: `./tweaks.sh [OPTIONS...]`
<details> <summary> Options </summary>

```bash
-f, --firefox [default|monterey]
Install 'NewSur|Monterey' theme for Firefox and connect it to the current Firefox profiles. Default is NewSur
-f, --firefox [default|monterey|alt]
Install 'NewSur|Monterey|Monterey-Alt' theme for Firefox and connect it to the current Firefox profiles. Default is NewSur

-e, --edit-firefox
Edit 'NewSur' theme for Firefox settings and also connect the theme to the current Firefox profiles.
Expand Down
2 changes: 2 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,8 @@ This theme is maintained by the following person(s) and a bunch of [awesome cont
--- |
[Aryan Kaushik](https://github.com/Aryan20) |

Note - Most of the code is contributed by different developers on the upstream original project, I commit those to keep mine updated but all the effort belongs to the original contributors.

## License

[MIT License](./LICENSE)
4 changes: 2 additions & 2 deletions lib-core.sh
Original file line number Diff line number Diff line change
Expand Up @@ -85,7 +85,7 @@ COLOR_VARIANTS=('light' 'dark')
OPACITY_VARIANTS=('normal' 'solid')
ALT_VARIANTS=('normal' 'alt')
THEME_VARIANTS=('default' 'blue' 'purple' 'pink' 'red' 'orange' 'yellow' 'green' 'grey')
ICON_VARIANTS=('standard' 'simple' 'gnome' 'ubuntu' 'arch' 'manjaro' 'fedora' 'debian' 'void' 'opensuse' 'popos' 'mxlinux' 'zorin')
ICON_VARIANTS=('standard' 'simple' 'gnome' 'ubuntu' 'tux' 'arch' 'manjaro' 'fedora' 'debian' 'void' 'opensuse' 'popos' 'mxlinux' 'zorin')
SIDEBAR_SIZE_VARIANTS=('default' '180' '220' '240' '260' '280')
PANEL_OPACITY_VARIANTS=('default' '30' '45' '60' '75')
PANEL_SIZE_VARIANTS=('default' 'smaller' 'bigger')
Expand Down Expand Up @@ -558,7 +558,7 @@ check_param() {
fi
done ;;
-i)
for i in {0..12}; do
for i in {0..13}; do
if [[ "${value}" == "${ICON_VARIANTS[i]}" ]]; then
icon="${ICON_VARIANTS[i]}"; variant_found="true"; break
fi
Expand Down
6 changes: 5 additions & 1 deletion lib-install.sh
Original file line number Diff line number Diff line change
Expand Up @@ -628,7 +628,11 @@ install_firefox_theme() {
if [[ "${monterey}" == 'true' ]]; then
udo cp -rf "${FIREFOX_SRC_DIR}"/Monterey "${TARGET_DIR}"
udo cp -rf "${FIREFOX_SRC_DIR}"/NewSur/{icons,titlebuttons} "${TARGET_DIR}"/Monterey
udo cp -rf "${FIREFOX_SRC_DIR}"/userChrome-Monterey.css "${TARGET_DIR}"/userChrome.css
if [[ "${alttheme}" == 'true' ]]; then
udo cp -rf "${FIREFOX_SRC_DIR}"/userChrome-Monterey-alt.css "${TARGET_DIR}"/userChrome.css
else
udo cp -rf "${FIREFOX_SRC_DIR}"/userChrome-Monterey.css "${TARGET_DIR}"/userChrome.css
fi
else
udo cp -rf "${FIREFOX_SRC_DIR}"/NewSur "${TARGET_DIR}"
udo cp -rf "${FIREFOX_SRC_DIR}"/userChrome-NewSur.css "${TARGET_DIR}"/userChrome.css
Expand Down
21 changes: 21 additions & 0 deletions src/assets/gnome-shell/activities-black/activities-tux.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
22 changes: 22 additions & 0 deletions src/assets/gnome-shell/activities/activities-tux.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
1 change: 1 addition & 0 deletions src/main/gnome-shell/gnome-shell-theme.gresource.xml
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,7 @@
<file>icons/scalable/actions/pointer-primary-click-symbolic.svg</file>
<file>icons/scalable/actions/pointer-secondary-click-symbolic.svg</file>
<file>gnome-shell.css</file>
<file alias="gdm.css">gnome-shell.css</file>
<file alias="gdm3.css">gnome-shell.css</file>
<file alias="Yaru/gnome-shell.css">gnome-shell.css</file>
<file alias="Yaru-dark/gnome-shell.css">gnome-shell.css</file>
Expand Down
27 changes: 1 addition & 26 deletions src/other/firefox/Monterey/parts/buttons.css
Original file line number Diff line number Diff line change
Expand Up @@ -238,34 +238,9 @@ button.close:active,
}

.close-icon:not(.tab-close-button) {
background: transparent !important;
box-shadow: none !important;
border: none !important;
border-radius: 100px !important;
padding: 0 0 !important;
margin: 0 0 !important;
min-height: 24px !important;
min-width: 24px !important;
}

#sidebar-close.close-icon,
.findbar-closebutton.close-icon {
min-width: 28px !important;
}

.close-icon:not(.tab-close-button) .button-icon {
padding: 0 0 !important;
margin: 0 0 !important;
}

.close-icon:not(.tab-close-button):hover {
outline: 0 !important;
background: var(--gnome-button-hover-color) !important;
}

.close-icon:not(.tab-close-button):active {
outline: 0 !important;
background: var(--gnome-button-active-color) !important;
border-radius: 100% !important;
}

/* Circle buttons */
Expand Down
Loading

0 comments on commit a0cf4d1

Please sign in to comment.