mirror of
https://github.com/gabehf/Fladder.git
synced 2026-03-09 07:28:14 -07:00
chore: Changed titlebar window buttons background
This commit is contained in:
parent
9eed99c8e0
commit
8e4171be56
1 changed files with 89 additions and 79 deletions
|
|
@ -47,8 +47,8 @@ class _DefaultTitleBarState extends ConsumerState<DefaultTitleBar> with WindowLi
|
||||||
decoration: BoxDecoration(
|
decoration: BoxDecoration(
|
||||||
gradient: LinearGradient(
|
gradient: LinearGradient(
|
||||||
colors: [
|
colors: [
|
||||||
surfaceColor.withValues(alpha: 0.7),
|
|
||||||
surfaceColor.withValues(alpha: hovering ? 0.7 : 0),
|
surfaceColor.withValues(alpha: hovering ? 0.7 : 0),
|
||||||
|
surfaceColor.withValues(alpha: 0),
|
||||||
],
|
],
|
||||||
begin: Alignment.topCenter,
|
begin: Alignment.topCenter,
|
||||||
end: Alignment.bottomCenter,
|
end: Alignment.bottomCenter,
|
||||||
|
|
@ -83,7 +83,16 @@ class _DefaultTitleBarState extends ConsumerState<DefaultTitleBar> with WindowLi
|
||||||
),
|
),
|
||||||
),
|
),
|
||||||
),
|
),
|
||||||
Row(
|
Container(
|
||||||
|
decoration: BoxDecoration(boxShadow: [
|
||||||
|
BoxShadow(
|
||||||
|
color: surfaceColor.withValues(alpha: 0.15),
|
||||||
|
blurRadius: 32,
|
||||||
|
spreadRadius: 10,
|
||||||
|
offset: const Offset(8, -6),
|
||||||
|
),
|
||||||
|
]),
|
||||||
|
child: Row(
|
||||||
children: [
|
children: [
|
||||||
FutureBuilder<List<bool>>(future: Future.microtask(() async {
|
FutureBuilder<List<bool>>(future: Future.microtask(() async {
|
||||||
final isMinimized = await windowManager.isMinimized();
|
final isMinimized = await windowManager.isMinimized();
|
||||||
|
|
@ -172,6 +181,7 @@ class _DefaultTitleBarState extends ConsumerState<DefaultTitleBar> with WindowLi
|
||||||
),
|
),
|
||||||
],
|
],
|
||||||
),
|
),
|
||||||
|
),
|
||||||
],
|
],
|
||||||
),
|
),
|
||||||
TargetPlatform.macOS => const SizedBox.shrink(),
|
TargetPlatform.macOS => const SizedBox.shrink(),
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue