-
-
Notifications
You must be signed in to change notification settings - Fork 12
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
a3ca981
commit 6a537c2
Showing
4 changed files
with
90 additions
and
11 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,36 @@ | ||
import 'package:bitsdojo_window/bitsdojo_window.dart'; | ||
import 'package:flutter/material.dart'; | ||
|
||
final buttonColors = WindowButtonColors( | ||
iconNormal: const Color(0xFF383838), | ||
mouseOver: const Color(0xFF282828), | ||
mouseDown: const Color(0xFF383838), | ||
iconMouseOver: const Color(0xFF787878), | ||
iconMouseDown: const Color(0xFFFAFAFA), | ||
); | ||
|
||
final closeButtonColors = WindowButtonColors( | ||
mouseOver: const Color(0xFF282828), | ||
mouseDown: const Color(0xFFB71C1C), | ||
iconNormal: const Color(0xFF383838), | ||
iconMouseOver: const Color(0xFFD32F2F)); | ||
|
||
class WindowButtons extends StatelessWidget { | ||
const WindowButtons({Key? key}) : super(key: key); | ||
|
||
@override | ||
Widget build(BuildContext context) { | ||
return Row( | ||
children: [ | ||
MinimizeWindowButton( | ||
colors: buttonColors, | ||
animate: true, | ||
), | ||
CloseWindowButton( | ||
colors: closeButtonColors, | ||
animate: true, | ||
), | ||
], | ||
); | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
import 'package:bitsdojo_window/bitsdojo_window.dart'; | ||
import 'package:flutter/material.dart'; | ||
import 'package:odin/widgets/window_buttons.dart'; | ||
|
||
class WindowTopBar extends StatelessWidget { | ||
const WindowTopBar({ | ||
Key? key, | ||
}) : super(key: key); | ||
|
||
@override | ||
Widget build(BuildContext context) { | ||
return WindowTitleBarBox( | ||
child: Row( | ||
children: [ | ||
Expanded( | ||
child: MoveWindow(), | ||
), | ||
const WindowButtons() | ||
], | ||
), | ||
); | ||
} | ||
} |