mirror of
https://github.com/koloideal/Casha.git
synced 2026-06-10 10:25:28 +03:00
stableee
This commit is contained in:
@@ -84,8 +84,14 @@ class AccountColorPanel extends StatelessWidget {
|
||||
Expanded(
|
||||
child: PanelTab(
|
||||
label: s.colorPrimary,
|
||||
isSelected: dashboardState.editingPrimary,
|
||||
color: dashboardState.tempPrimary,
|
||||
isSelected:
|
||||
dashboardState.editingPrimary && !isSolid,
|
||||
color: isSolid
|
||||
? Theme.of(dashboardContext)
|
||||
.colorScheme
|
||||
.onSurface
|
||||
.withOpacity(0.12)
|
||||
: dashboardState.tempPrimary,
|
||||
isDimmed: isSolid,
|
||||
onTap: () {
|
||||
dashboardState.setState(() {
|
||||
@@ -103,7 +109,8 @@ class AccountColorPanel extends StatelessWidget {
|
||||
Expanded(
|
||||
child: PanelTab(
|
||||
label: s.colorSecondary,
|
||||
isSelected: !dashboardState.editingPrimary,
|
||||
isSelected:
|
||||
!dashboardState.editingPrimary && !isSolid,
|
||||
color: dashboardState.tempSecondary,
|
||||
isDimmed: isSolid,
|
||||
onTap: () {
|
||||
@@ -161,9 +168,33 @@ class AccountColorPanel extends StatelessWidget {
|
||||
width: 1.5,
|
||||
),
|
||||
),
|
||||
child: Center(
|
||||
child: Row(
|
||||
mainAxisSize: MainAxisSize.min,
|
||||
mainAxisAlignment: MainAxisAlignment.center,
|
||||
children: [
|
||||
Container(
|
||||
width: 10,
|
||||
height: 10,
|
||||
decoration: BoxDecoration(
|
||||
color: dashboardState.tempPrimary,
|
||||
shape: BoxShape.circle,
|
||||
border: Border.all(
|
||||
color: Theme.of(dashboardContext)
|
||||
.brightness ==
|
||||
Brightness.dark
|
||||
? Colors.white30
|
||||
: Colors.black12,
|
||||
width: 1,
|
||||
),
|
||||
),
|
||||
),
|
||||
const SizedBox(width: 6),
|
||||
Flexible(
|
||||
child: Text(
|
||||
s.colorSolid,
|
||||
overflow: TextOverflow.ellipsis,
|
||||
maxLines: 1,
|
||||
textAlign: TextAlign.center,
|
||||
style: TextStyle(
|
||||
fontSize: 11,
|
||||
fontWeight: isSolid
|
||||
@@ -178,6 +209,8 @@ class AccountColorPanel extends StatelessWidget {
|
||||
),
|
||||
),
|
||||
),
|
||||
],
|
||||
),
|
||||
),
|
||||
),
|
||||
),
|
||||
|
||||
@@ -171,8 +171,13 @@ class _FullScreenBlurOverlayState extends State<FullScreenBlurOverlay> {
|
||||
Expanded(
|
||||
child: PanelTab(
|
||||
label: s.colorPrimary,
|
||||
isSelected: dash.editingPrimary,
|
||||
color: dash.tempPrimary,
|
||||
isSelected: dash.editingPrimary && !isSolid,
|
||||
color: isSolid
|
||||
? Theme.of(widget.context)
|
||||
.colorScheme
|
||||
.onSurface
|
||||
.withOpacity(0.12)
|
||||
: dash.tempPrimary,
|
||||
isDimmed: isSolid,
|
||||
onTap: () {
|
||||
dash.setState(() {
|
||||
@@ -188,7 +193,7 @@ class _FullScreenBlurOverlayState extends State<FullScreenBlurOverlay> {
|
||||
Expanded(
|
||||
child: PanelTab(
|
||||
label: s.colorSecondary,
|
||||
isSelected: !dash.editingPrimary,
|
||||
isSelected: !dash.editingPrimary && !isSolid,
|
||||
color: dash.tempSecondary,
|
||||
isDimmed: isSolid,
|
||||
onTap: () {
|
||||
@@ -240,9 +245,33 @@ class _FullScreenBlurOverlayState extends State<FullScreenBlurOverlay> {
|
||||
width: 1.5,
|
||||
),
|
||||
),
|
||||
child: Center(
|
||||
child: Row(
|
||||
mainAxisSize: MainAxisSize.min,
|
||||
mainAxisAlignment: MainAxisAlignment.center,
|
||||
children: [
|
||||
Container(
|
||||
width: 10,
|
||||
height: 10,
|
||||
decoration: BoxDecoration(
|
||||
color: dash.tempPrimary,
|
||||
shape: BoxShape.circle,
|
||||
border: Border.all(
|
||||
color: Theme.of(widget.context)
|
||||
.brightness ==
|
||||
Brightness.dark
|
||||
? Colors.white30
|
||||
: Colors.black12,
|
||||
width: 1,
|
||||
),
|
||||
),
|
||||
),
|
||||
const SizedBox(width: 6),
|
||||
Flexible(
|
||||
child: Text(
|
||||
s.colorSolid,
|
||||
overflow: TextOverflow.ellipsis,
|
||||
maxLines: 1,
|
||||
textAlign: TextAlign.center,
|
||||
style: TextStyle(
|
||||
fontSize: 11,
|
||||
fontWeight: isSolid
|
||||
@@ -257,6 +286,8 @@ class _FullScreenBlurOverlayState extends State<FullScreenBlurOverlay> {
|
||||
),
|
||||
),
|
||||
),
|
||||
],
|
||||
),
|
||||
),
|
||||
),
|
||||
],
|
||||
|
||||
Reference in New Issue
Block a user