Skip to content

Commit

Permalink
feat: use yaru.dart colors for window background (#47)
Browse files Browse the repository at this point in the history
  • Loading branch information
Jupi007 committed Mar 9, 2024
1 parent 6cb390f commit 5f0dbaf
Show file tree
Hide file tree
Showing 5 changed files with 12 additions and 5 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/ci.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ on:
workflow_dispatch:

env:
FLUTTER_VERSION: '3.10.4'
FLUTTER_VERSION: 3.16.5

jobs:
analyze:
Expand Down
2 changes: 1 addition & 1 deletion assets/handy-window-dark.css

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion assets/handy-window.css

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

7 changes: 7 additions & 0 deletions assets/handy-window.scss
Original file line number Diff line number Diff line change
@@ -1,5 +1,12 @@
$variant: 'light' !default;

window {
background-color: if($variant=='light',
white,
#252525, // darkJet
);
}

// Mimic Libadwaita window and headerbar style

window.csd.unified {
Expand Down
4 changes: 2 additions & 2 deletions example/pubspec.yaml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
name: handy_window_example
description: Demonstrates the handy_window plugin.
publish_to: 'none'
publish_to: "none"

environment:
sdk: ">=3.0.0 <4.0.0"
Expand All @@ -11,7 +11,7 @@ dependencies:
handy_window:
path: ../
url_launcher: ^6.1.0
yaru: ^0.9.0
yaru: ^4.0.0

dev_dependencies:
flutter_lints: ^2.0.0
Expand Down

0 comments on commit 5f0dbaf

Please sign in to comment.