Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Remove Mac Style buttons #40

Closed
ghost opened this issue Feb 3, 2018 · 1 comment
Closed

Remove Mac Style buttons #40

ghost opened this issue Feb 3, 2018 · 1 comment

Comments

@ghost
Copy link

ghost commented Feb 3, 2018

Hi,
how I can remove the MAC style buttons from the git cloned version?

@EliverLara
Copy link
Owner

There is a version available without MAC style buttons in gnome-look, but if you want to do it manually check out the following diffs:

widgets/_windows.scss

diff --git a/gtk-3.20/widgets/_windows.scss b/gtk-3.20/widgets/_windows.scss
index 0b08f8a..29ba6f2 100644
--- a/gtk-3.20/widgets/_windows.scss
+++ b/gtk-3.20/widgets/_windows.scss
@@ -66,45 +66,6 @@ decoration {
   }
 }
 
-// Window Close button
-button.titlebutton {
-  background-repeat: no-repeat;
-  background-position: center;
-  min-height: 32px;
-  padding: 0 3px;
-  box-shadow: none;
-  
-  &.close {
-    background-image: -gtk-scaled(url("../assets/close.png"),url("../assets/close@2.png"));
-    &:hover,&:active {
-      background-image: -gtk-scaled(url("../assets/close_prelight.png"),url("../assets/close_prelight@2.png"));
-    }
-  }
-  &.maximize {
-    background-image: -gtk-scaled(url("../assets/maximize.png"),url("../assets/max@2.png"));
-    &:hover,&:active {
-      background-image: -gtk-scaled(url("../assets/maximize_prelight.png"),url("../assets/max_prelight@2.png"));
-    }
-  }
-  &.minimize {
-    background-image: -gtk-scaled(url("../assets/min.png"),url("../assets/min@2.png"));
-    &:hover,&:active {
-      background-image: -gtk-scaled(url("../assets/min_prelight.png"),url("../assets/min_prelight@2.png"));
-    }
-  }
-
-  .selection-mode & {
-    @extend %button.flat.suggested-action;
-
-    @extend %nobg_selected_items;
-  }
-
-  &:backdrop { 
-    -gtk-icon-shadow: none; 
-    background-image: -gtk-scaled(url("../assets/close_unfocused.png"),url("../assets/close_unfocused@2.png"));    
-  }
-}
-
 headerbar.selection-mode button.titlebutton,
 .titlebar.selection-mode button.titlebutton {
   @include _button_text_shadow(white, $selected_bg_color);

widgets/_header-bars.scss

diff --git a/gtk-3.20/widgets/_header-bars.scss b/gtk-3.20/widgets/_header-bars.scss
index 73e414b..d1d8b44 100644
--- a/gtk-3.20/widgets/_header-bars.scss
+++ b/gtk-3.20/widgets/_header-bars.scss
@@ -112,20 +112,6 @@ headerbar {
       }
     }
 
-    //Reset style
-    &.titlebutton {
-      color: transparent;
-      box-shadow: none;
-
-      &:hover,
-      &:active,
-      &:checked,
-      &:backdrop,
-      &:backdrop:hover,* {
-        color: transparent;
-        box-shadow: none;
-      }
-    }
   }
   .linked > button,
   .linked > button:hover,

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant