diff --git a/lib/desktops/desktops.dart b/lib/desktops/desktops.dart index a03df19..e239442 100644 --- a/lib/desktops/desktops.dart +++ b/lib/desktops/desktops.dart @@ -24,7 +24,7 @@ List desktops = const [ //imageurl: '', ), Desktop( - name: "KDE plasma", + name: "KDE Plasma", displayManager: "sddm", packages: [ "plasma", diff --git a/lib/functions/desktop.dart b/lib/functions/desktop.dart index 9efd08c..824c622 100644 --- a/lib/functions/desktop.dart +++ b/lib/functions/desktop.dart @@ -1,7 +1,7 @@ import 'package:flutter/material.dart'; import 'package:jade_gui/desktops/desktops.dart'; -Widget desktopTemplate(desktop, setDesktop) { +Widget desktopTemplate(desktop, setDesktop, currDesktop) { return Column( mainAxisAlignment: MainAxisAlignment.spaceEvenly, crossAxisAlignment: CrossAxisAlignment.stretch, @@ -19,8 +19,12 @@ Widget desktopTemplate(desktop, setDesktop) { }, style: TextButton.styleFrom( primary: Colors.white, - backgroundColor: const Color.fromARGB(0, 169, 0, 255), - shadowColor: const Color.fromARGB(0, 169, 0, 255), + backgroundColor: currDesktop.name == desktop.name + ? Color.fromARGB(100, 170, 40, 255) + : Color.fromARGB(0, 170, 0, 255), + shadowColor: currDesktop.name == desktop.name + ? Color.fromARGB(100, 170, 0, 255) + : Color.fromARGB(0, 170, 0, 255), padding: const EdgeInsets.all(10), ), child: Text( @@ -72,8 +76,8 @@ Widget desktopView(currDesktop, setDesktop, next) { primary: false, child: Column( children: desktops - .map( - (desktop) => desktopTemplate(desktop, setDesktop)) + .map((desktop) => + desktopTemplate(desktop, setDesktop, currDesktop)) .toList(), ), ),