Skip to content

Commit

Permalink
#108: create screenshots via ScreenShotterApp
Browse files Browse the repository at this point in the history
  • Loading branch information
rladstaetter committed Jan 15, 2023
1 parent 48a6dac commit fabdfc9
Show file tree
Hide file tree
Showing 5 changed files with 7 additions and 5 deletions.
Binary file added docs/releases/23.1.0/1280x800.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added docs/releases/23.1.0/1440x900.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added docs/releases/23.1.0/1920x1080.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
6 changes: 2 additions & 4 deletions docs/src/main/scala/app/logorrr/docs/Area.scala
Original file line number Diff line number Diff line change
Expand Up @@ -5,11 +5,9 @@ object Area {

object R1440x900 extends Area(1440, 900)

object R2560x1600 extends Area(2560, 1600)
object R1920x1080 extends Area(1920, 1080)

object R2880x1800 extends Area(2880, 1800)

val seq: Seq[Area] = Seq(R1280x800, R1440x900, R2560x1600, R2880x1800)
val seq: Seq[Area] = Seq(R1280x800, R1440x900, R1920x1080)
}

case class Area(width: Int, height: Int) extends Product
6 changes: 5 additions & 1 deletion docs/src/main/scala/app/logorrr/docs/ScreenShotterApp.scala
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
package app.logorrr.docs

import app.logorrr.conf._
import app.logorrr.docs.Area._
import app.logorrr.io.Fs
import app.logorrr.meta.AppMeta
import app.logorrr.model.LogFileSettings
Expand Down Expand Up @@ -33,7 +34,10 @@ object ScreenShotterApp {
class ScreenShotterApp extends javafx.application.Application with CanLog {

def start(stage: Stage): Unit = {
for (Area(width, height) <- Area.seq) {
val s0 = Seq[Area](R1280x800)
val s1 = Seq[Area](R1440x900)
val s2 = Seq[Area](R1920x1080)
for (Area(width, height) <- s2) {
val path = Paths.get("logfiles/logic.2.log").toAbsolutePath
val settings =
Settings(StageSettings(0, 0, width, height)
Expand Down

0 comments on commit fabdfc9

Please sign in to comment.