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