--- /dev/null
+{
+ "narrative": {
+ "font": "Cantarell Regular 16",
+ "fgcol": "#222222",
+ "pad": "10,10,10,10",
+ "paraspace": "0,0,10,10",
+ "bgcol": "#ffffff"
+ },
+
+ "slide": {
+ "size": "1280x720",
+ "bggradv": "#333333,#000055",
+ "frame": {
+ "font": "Cantarell Regular 14",
+ "pad": "0,0,0,0",
+ "fgcol": "#c5c5c5",
+ "bgcol": "#ffffff00",
+ "paraspace": "5,5,5,5"
+ },
+ "slidetitle": {
+ "geometry": "1fx90u+0+0",
+ "pad": "20,20,20,20",
+ "fgcol": "#eeeeee",
+ "font": "Cantarell Regular 36",
+ "bgcol": "#ffffff00"
+ },
+ "prestitle": {
+ "geometry": "1fx140u+0+0",
+ "pad": "20,20,20,20",
+ "fgcol": "#eeeeee",
+ "font": "Cantarell Regular 64",
+ "alignment": "center",
+ "bgcol": "#ffffff00"
+ },
+ "_comment": "Add footer, credit and bp"
+ }
+}
int r = 0;
char *everything;
GFile *ssfile;
+ GFile *parent;
gchar *ssuri;
assert(p->completely_empty);
}
p->stylesheet = NULL;
+
+ /* First choice: /same/directory/<presentation>.ss */
ssuri = g_file_get_uri(file);
if ( ssuri != NULL ) {
size_t l = strlen(ssuri);
g_free(ssuri);
}
}
+
+ /* Second choice: /same/directory/stylesheet.ss */
+ if ( p->stylesheet == NULL ) {
+ parent = g_file_get_parent(file);
+ if ( parent != NULL ) {
+ ssfile = g_file_get_child(parent, "stylesheet.ss");
+ if ( ssfile != NULL ) {
+ p->stylesheet = stylesheet_load(ssfile);
+ g_object_unref(ssfile);
+ }
+ }
+ }
+
+ /* Third choice: <cwd>/stylesheet.ss */
+ if ( p->stylesheet == NULL ) {
+ ssfile = g_file_new_for_path("./stylesheet.ss");
+ p->stylesheet = stylesheet_load(ssfile);
+ g_object_unref(ssfile);
+ }
+
+ /* Fourth choice: internal default stylesheet */
if ( p->stylesheet == NULL ) {
- ssfile = g_file_new_for_path("./stylesheet.json");
+ ssfile = g_file_new_for_uri("resource:///uk/me/bitwiz/Colloquium/default.ss");
p->stylesheet = stylesheet_load(ssfile);
g_object_unref(ssfile);
}
+ /* Last resort is NULL stylesheet and SCInterpreter's defaults */
+
set_slide_size_from_stylesheet(p);
assert(p->uri == NULL);