...
 
Commits (2)
......@@ -3,6 +3,7 @@
.scroll-bar:horizontal ,
.scroll-bar:vertical {
-fx-background-color:transparent;
-fx-pref-width: 8;
}
/* The increment and decrement button CSS class of scrollbar */
......@@ -43,7 +44,7 @@
.scroll-bar:horizontal .thumb,
.scroll-bar:vertical .thumb {
-fx-background-color:derive(#9147ff,10%);
-fx-background-insets: 3, 0, 0;
-fx-background-insets: 2, 0, 0;
-fx-background-radius: 2em;
}
......
......@@ -23,6 +23,7 @@
}
.menu-btn {
-fx-background-radius: 0px;
-fx-alignment: center-left;
-fx-background-color: transparent;
-fx-text-fill: #9147ff;
......@@ -32,6 +33,7 @@
}
.menu-btn > .label {
-fx-background-radius: 0px;
-fx-text-fill: #9147ff;
}
......@@ -40,18 +42,20 @@
}
.menu-btn:hover {
-fx-background-radius: 0px;
-fx-text-fill: white;
-fx-font-color: white;
-fx-background-color: #9147ff;
-fx-text-fill: white;
-fx-font-color: white;
-fx-background-color: #9147ff;
}
.active {
-fx-background-radius: 0px;
-fx-text-fill: white;
-fx-font-color: white;
-fx-background-color: #9147ff;
}
-fx-text-fill: white;
-fx-font-color: white;
-fx-background-color: #9147ff;
}
.active: hover {
-fx-background-color: derive(#9147ff, 10%);
}
.active > .label {
-fx-text-fill: white;
......
......@@ -3,7 +3,6 @@ package api.types.collection
import api.RESTClient
import api.types.{Follow, Pagination, User}
import play.api.libs.json.{Json, Reads}
import util.config.APIConfig
class Follows(_follows: List[Follow], _cursor: String)
extends APICollection[Follow]{
......@@ -17,8 +16,20 @@ class Follows(_follows: List[Follow], _cursor: String)
/*
* Get streams associated to the follow objects
*/
def getStreams(page: Option[Pagination] = None): Streams = {
Streams.topStreams(page = page, users = Some(objects.map(f => f.to_id)))
def getStreams(
page: Option[Pagination] = None,
objects: List[Follow] = this.objects
): Streams = {
val (objectsHead, objectsTail) = objects.splitAt(100)
val streams: Streams = Streams.topStreams(
page = page,
users = Some(objectsHead.map(f => f.to_id))
)
objectsTail match {
case List() => streams
case obj: List[Follow] =>
new Streams(streams.objects ::: getStreams(objects=obj).objects, "")
}
}
/*
......
......@@ -57,6 +57,7 @@ abstract class ListPanel[A](
id = "list-grid"
fitToWidth = true
fitToHeight = true
vbarPolicy = ScrollPane.ScrollBarPolicy.Always
content = grid
}
......