feat: update theme colors.
This commit is contained in:
@@ -12,44 +12,50 @@ class GestureEditor extends StatelessWidget {
|
||||
Widget build(BuildContext context) {
|
||||
var layoutProvider = context.watch<ContentLayoutProvider>();
|
||||
return Flexible(
|
||||
child: Container(
|
||||
color: Colors.black45,
|
||||
child: Column(
|
||||
mainAxisAlignment: MainAxisAlignment.spaceBetween,
|
||||
children: [
|
||||
Row(
|
||||
mainAxisAlignment: MainAxisAlignment.spaceBetween,
|
||||
children: [
|
||||
Visibility(
|
||||
visible: layoutProvider.localManagerOpened == false,
|
||||
child: IconButton(
|
||||
onPressed: () => H.openPanel(context, PanelType.local_manager),
|
||||
icon: Icon(
|
||||
CupertinoIcons.square_list,
|
||||
),
|
||||
),
|
||||
),
|
||||
Visibility(
|
||||
visible: layoutProvider.marketOpened == false,
|
||||
child: IconButton(
|
||||
onPressed: () => H.openPanel(context, PanelType.market),
|
||||
icon: Icon(
|
||||
CupertinoIcons.cart,
|
||||
),
|
||||
),
|
||||
),
|
||||
],
|
||||
),
|
||||
Container(
|
||||
child: Row(
|
||||
child: Padding(
|
||||
padding: const EdgeInsets.all(10),
|
||||
child: Container(
|
||||
decoration: BoxDecoration(
|
||||
color: context.t.backgroundColor,
|
||||
borderRadius: BorderRadius.circular(10),
|
||||
),
|
||||
child: Column(
|
||||
mainAxisAlignment: MainAxisAlignment.spaceBetween,
|
||||
children: [
|
||||
Row(
|
||||
mainAxisAlignment: MainAxisAlignment.spaceBetween,
|
||||
children: [
|
||||
Text("<编辑器区域"),
|
||||
Text("编辑器区域>"),
|
||||
Visibility(
|
||||
visible: layoutProvider.localManagerOpened == false,
|
||||
child: IconButton(
|
||||
onPressed: () => H.openPanel(context, PanelType.local_manager),
|
||||
icon: Icon(
|
||||
CupertinoIcons.square_list,
|
||||
),
|
||||
),
|
||||
),
|
||||
Visibility(
|
||||
visible: layoutProvider.marketOpened == false,
|
||||
child: IconButton(
|
||||
onPressed: () => H.openPanel(context, PanelType.market),
|
||||
icon: Icon(
|
||||
CupertinoIcons.cart,
|
||||
),
|
||||
),
|
||||
),
|
||||
],
|
||||
),
|
||||
),
|
||||
],
|
||||
Container(
|
||||
child: Row(
|
||||
mainAxisAlignment: MainAxisAlignment.spaceBetween,
|
||||
children: [
|
||||
Text("<编辑器区域"),
|
||||
Text("编辑器区域>"),
|
||||
],
|
||||
),
|
||||
),
|
||||
],
|
||||
),
|
||||
),
|
||||
),
|
||||
);
|
||||
|
||||
@@ -22,9 +22,8 @@ class LocalManager extends StatelessWidget {
|
||||
maxWidth: localManagerPanelWidth,
|
||||
minWidth: localManagerPanelWidth,
|
||||
child: Material(
|
||||
// color: context.t.backgroundColor,
|
||||
color: Colors.deepPurple,
|
||||
elevation: isOpen ? 20 : 0,
|
||||
color: context.t.backgroundColor,
|
||||
elevation: isOpen ? 10 : 0,
|
||||
child: Column(
|
||||
mainAxisAlignment: MainAxisAlignment.start,
|
||||
children: [
|
||||
|
||||
@@ -21,8 +21,8 @@ class Market extends StatelessWidget {
|
||||
maxWidth: marketPanelWidth,
|
||||
minWidth: marketPanelWidth,
|
||||
child: Material(
|
||||
color: Colors.deepPurpleAccent,
|
||||
elevation: isOpen ? 20 : 0,
|
||||
color: context.t.backgroundColor,
|
||||
elevation: isOpen ? 10 : 0,
|
||||
child: Column(
|
||||
mainAxisAlignment: MainAxisAlignment.start,
|
||||
children: [
|
||||
|
||||
@@ -2,4 +2,6 @@ import 'package:flutter/material.dart';
|
||||
|
||||
var darkTheme = ThemeData.dark().copyWith(
|
||||
primaryColor: Colors.grey,
|
||||
scaffoldBackgroundColor: Color(0xff252525),
|
||||
backgroundColor: Color(0xff282828),
|
||||
);
|
||||
|
||||
@@ -2,4 +2,6 @@ import 'package:flutter/material.dart';
|
||||
|
||||
var lightTheme = ThemeData.light().copyWith(
|
||||
primaryColor: Colors.blue,
|
||||
);
|
||||
scaffoldBackgroundColor: Color(0xfff8f8f8),
|
||||
backgroundColor: Color(0xffffffff),
|
||||
);
|
||||
|
||||
Reference in New Issue
Block a user