Skip to content

Commit

Permalink
* - small stuff
Browse files Browse the repository at this point in the history
  • Loading branch information
Lains committed Aug 17, 2021
1 parent 78e38b1 commit 648199c
Show file tree
Hide file tree
Showing 4 changed files with 48 additions and 37 deletions.
22 changes: 21 additions & 1 deletion data/app.css
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,24 @@
@define-color accent_bg_color @yellow_4;
@define-color accent_fg_color alpha(black, .75);

.flat-button {
background: none;
margin: 0;
font-weight: 400;
}

.flat-button:hover,
.flat-button:checked {
background: alpha(@theme_fg_color, 0.1);
}

.flat-button:active,
.flat-button:checked:active {
background: alpha(@theme_fg_color, 0.2);
}

.rename-button .toggle {
border-radius: 0px;
border-radius: 5px;
background: none;
}

Expand Down Expand Up @@ -85,6 +101,10 @@
transition: 100ms ease-in-out;
}

.notejot-sbar:backdrop {
opacity: 0.66;
}

.empty-state {
background-color: @theme_bg_color;
}
Expand Down
37 changes: 24 additions & 13 deletions data/icons/scalable/notebook-config-symbolic.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
3 changes: 3 additions & 0 deletions data/ui/main_window.ui
Original file line number Diff line number Diff line change
Expand Up @@ -164,6 +164,9 @@
</style>
</object>
</child>
<style>
<class name="notejot-sbar"/>
</style>
</object>
</child>
</object>
Expand Down
23 changes: 0 additions & 23 deletions src/Widgets/Note.vala
Original file line number Diff line number Diff line change
Expand Up @@ -89,22 +89,10 @@ namespace Notejot {
win.titlebar.get_style_context ().remove_class (@"notejot-action-dark-$uid");
}

if (Notejot.Application.gsettings.get_boolean("dark-mode")) {
textfield.get_style_context ().add_class ("notejot-tview-dark-%d".printf(uid));
} else {
textfield.get_style_context ().remove_class ("notejot-tview-dark-%d".printf(uid));
}

Notejot.Application.gsettings.changed.connect (() => {
if (!Notejot.Application.gsettings.get_boolean("dark-mode")) {
win.titlebar.get_style_context ().remove_class (@"notejot-action-dark-$uid");
}

if (Notejot.Application.gsettings.get_boolean("dark-mode")) {
textfield.get_style_context ().add_class ("notejot-tview-dark-%d".printf(uid));
} else {
textfield.get_style_context ().remove_class ("notejot-tview-dark-%d".printf(uid));
}
});
}

Expand Down Expand Up @@ -147,15 +135,12 @@ namespace Notejot {
background: mix(@theme_base_color, %s, 0.1);
}
.notejot-action-%d:backdrop {
background: mix(%s, @theme_base_color, 0.9);
opacity: 0.66;
}
.notejot-stack-%d:backdrop {
background: mix(%s, @theme_base_color, 0.9);
opacity: 0.66;
}
.notejot-stack-%d:backdrop .notejot-bar {
background: mix(%s, @theme_base_color, 0.9);
opacity: 0.66;
}
.notejot-stack-%d box {
Expand All @@ -164,9 +149,6 @@ namespace Notejot {
.notejot-tview-%d text {
background: mix(@theme_base_color, %s, 0.1);
}
.notejot-tview-dark-%d text {
background: shade(mix(@theme_base_color, %s, 0.1), 0.75);
}
""".printf( uid,
color,
uid,
Expand All @@ -176,14 +158,9 @@ namespace Notejot {
uid,
color,
uid,
color,
uid,
color,
uid,
color,
uid,
uid,
color,
uid,
color
);
Expand Down

0 comments on commit 648199c

Please sign in to comment.