Skip to content

Commit

Permalink
[Gtk-3.18][Gtk-3.20]Fix info,warning,question and error classes
Browse files Browse the repository at this point in the history
This makes them available globally. Now gedit searchbar will turn red if the search items are not found!
  • Loading branch information
khurshid-alam committed Jun 18, 2016
1 parent a173892 commit e43efdc
Show file tree
Hide file tree
Showing 2 changed files with 34 additions and 34 deletions.
34 changes: 17 additions & 17 deletions gtk-3.0/scss/widgets/_infobar.scss
Original file line number Diff line number Diff line change
Expand Up @@ -8,30 +8,30 @@
@include exports("infobar") {
GtkInfoBar {
border: 0;
}

$types: (
info: ($info_fg_color, $info_bg_color),
warning: ($warning_fg_color, $warning_bg_color),
question: ($question_fg_color, $question_bg_color),
error: ($error_fg_color, $error_bg_color),
);
$types: (
info: ($info_fg_color, $info_bg_color),
warning: ($warning_fg_color, $warning_bg_color),
question: ($question_fg_color, $question_bg_color),
error: ($error_fg_color, $error_bg_color),
);


@each $type, $colors in $types {
$fg_color: nth($colors, 1);
$bg_color: nth($colors, 2);
@each $type, $colors in $types {
$fg_color: nth($colors, 1);
$bg_color: nth($colors, 2);

&.#{$type} {
@include linear-gradient($bg_color);
.#{$type} {
@include linear-gradient($bg_color);

border: 1px solid shade($bg_color, .8);
color: $fg_color;
border: 1px solid shade($bg_color, .8);
color: $fg_color;

.button {
@include button($bg_color, $fg_color);
button {

This comment has been minimized.

Copy link
@megax

megax Jun 18, 2016

Contributor

Button gtk 3.18: .button

@include button($bg_color, $fg_color);

&.close { @extend %close_button; }
}
&.close { @extend %close_button; }
}
}
}
Expand Down
34 changes: 17 additions & 17 deletions gtk-3.20/scss/widgets/_infobar.scss
Original file line number Diff line number Diff line change
Expand Up @@ -8,30 +8,30 @@
@include exports("infobar") {
infobar {
border: 0;
}

$types: (
info: ($info_fg_color, $info_bg_color),
warning: ($warning_fg_color, $warning_bg_color),
question: ($question_fg_color, $question_bg_color),
error: ($error_fg_color, $error_bg_color),
);
$types: (
info: ($info_fg_color, $info_bg_color),
warning: ($warning_fg_color, $warning_bg_color),
question: ($question_fg_color, $question_bg_color),
error: ($error_fg_color, $error_bg_color),
);


@each $type, $colors in $types {
$fg_color: nth($colors, 1);
$bg_color: nth($colors, 2);
@each $type, $colors in $types {
$fg_color: nth($colors, 1);
$bg_color: nth($colors, 2);

&.#{$type} {
@include linear-gradient($bg_color);
.#{$type} {
@include linear-gradient($bg_color);

border: 1px solid shade($bg_color, .8);
color: $fg_color;
border: 1px solid shade($bg_color, .8);
color: $fg_color;

button {
@include button($bg_color, $fg_color);
button {
@include button($bg_color, $fg_color);

&.close { @extend %close_button; }
}
&.close { @extend %close_button; }
}
}
}
Expand Down

1 comment on commit e43efdc

@khurshid-alam
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

oops! fixed!

Please sign in to comment.