diff --git a/src/main/scala/nova/monadic_sfx/ui/components/todo/TodoListView.scala b/src/main/scala/nova/monadic_sfx/ui/components/todo/TodoListView.scala index 2cb21e5..42eaf5d 100644 --- a/src/main/scala/nova/monadic_sfx/ui/components/todo/TodoListView.scala +++ b/src/main/scala/nova/monadic_sfx/ui/components/todo/TodoListView.scala @@ -46,6 +46,45 @@ object TodoListView { selectionModel().selectionMode = SelectionMode.Multiple selectionModel().selectedItems.observableSeqValue ==> _selectedItems + stylesheets ++= Seq( + (os.rel / "static" / "css" / "main.css").toString + ) + + style = """| + | .scroll-bar:horizontal .track, + | .scroll-bar:vertical .track{ + | -fx-background-color:transparent; + | -fx-border-color:transparent; + | -fx-background-radius: 0em; + | -fx-border-radius:2em; + | } + | + | .scroll-bar:horizontal .increment-button , + | .scroll-bar:horizontal .decrement-button { + | -fx-background-color:transparent; + | -fx-background-radius: 0em; + | -fx-padding:0 0 10 0; + | } + | + | .scroll-bar:vertical .increment-button , + | .scroll-bar:vertical .decrement-button { + | -fx-background-color:transparent; + | -fx-background-radius: 0em; + | -fx-padding:0 10 0 0; + | } + | .scroll-bar .increment-arrow, + | .scroll-bar .decrement-arrow{ + | -fx-shape:" "; + | -fx-padding:0; + | } + | + | .scroll-bar:horizontal .thumb, + | .scroll-bar:vertical .thumb { + | -fx-background-color:derive(black,90%); + | -fx-background-insets: 2, 0, 0; + | -fx-background-radius: 2em; + }""".stripMargin + cc += items <-- todos val emptyCell = ObjectProperty(new HBox) @@ -78,10 +117,6 @@ object TodoListView { contextMenu = new ContextMenu { items ++= Seq( - new MenuItem { - text = "Add" - // obsAction.useLazyEval(TodoListStore.Add("blah3")) --> store - }, new MenuItem { text = "Delete" obsAction.useIterableEval(_ =>