CSS as static resource.
This commit is contained in:
@@ -1,5 +1,3 @@
|
|||||||
import strutils
|
|
||||||
const css* = """
|
|
||||||
window {
|
window {
|
||||||
background: black;
|
background: black;
|
||||||
font-size: 30px;
|
font-size: 30px;
|
||||||
@@ -11,4 +9,3 @@ label {
|
|||||||
margin: 10px;
|
margin: 10px;
|
||||||
padding: 10px;
|
padding: 10px;
|
||||||
}
|
}
|
||||||
""".unindent
|
|
||||||
@@ -2,9 +2,10 @@ import httpClient, json, os, options, strformat
|
|||||||
import gintro/[gtk, glib, gobject, gio, gdkpixbuf]
|
import gintro/[gtk, glib, gobject, gio, gdkpixbuf]
|
||||||
import gintro/gdk except Window
|
import gintro/gdk except Window
|
||||||
import argparse except run
|
import argparse except run
|
||||||
import fileAccess, style
|
import fileAccess
|
||||||
|
|
||||||
const
|
const
|
||||||
|
css = slurp("app.css")
|
||||||
version = "0.1"
|
version = "0.1"
|
||||||
floofUrl = "https://randomfox.ca/floof/"
|
floofUrl = "https://randomfox.ca/floof/"
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user