Skip to content

Commit

Permalink
Adjusted fountain preview 🌸
Browse files Browse the repository at this point in the history
- Replaced old Fountain CSS with one presumably created by @kmwallio
- Adjusted markdown and fountain HTMLs
  • Loading branch information
fairybow committed Feb 3, 2023
1 parent d89722d commit b3ab7c9
Show file tree
Hide file tree
Showing 11 changed files with 24 additions and 316 deletions.
5 changes: 5 additions & 0 deletions fernanda/docs/todo.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
# To-Do

## General
- [ ] Export All vs Export Selected/Single
- [ ] Ability to "mark" files as countable/compilable, for both exporting a draft and calculating totals
- [ ] Installer script needs to detect if Fernanda is running
- [ ] Moveable documents folder
Expand Down Expand Up @@ -125,6 +126,10 @@
### Popup
- [ ] Ensure popups happen on the same monitor...

### Preview
- [ ] Replace fountain CSS
- [ ] Minify fountain CSS

### StartCop
- [ ] Accept args (on file click, prompt to save if needed and open new file; possibly also switch to dev mode)

Expand Down
2 changes: 1 addition & 1 deletion fernanda/res/preview.qrc
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,8 @@
<file>preview/fountain-overwrite.css</file>
<file>preview/markdown.html</file>
<file>preview/markdown-overwrite.css</file>
<file>preview/include/fountain.min.css</file>
<file>preview/include/fountain.min.js</file>
<file>preview/include/fountain-js.css</file>
<file>preview/include/github-markdown.min.css</file>
<file>preview/include/github-markdown-dark.min.css</file>
<file>preview/include/github-markdown-light.min.css</file>
Expand Down
5 changes: 5 additions & 0 deletions fernanda/res/preview/fountain-overwrite.css
Original file line number Diff line number Diff line change
@@ -1,2 +1,7 @@
body {
background-color: ivory;
color: #444;
font-family: Courier New, Courier, monospace;
padding-left: 2em;
padding-right: 2em;
}
6 changes: 3 additions & 3 deletions fernanda/res/preview/fountain.html
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
<meta charset="utf-8">
<html lang="en">
<head>
<link rel="stylesheet" href="include/fountain-js.css">
<link rel="stylesheet" href="include/fountain.min.css">
<link rel="stylesheet" href="fountain-overwrite.css">
<script src="include/fountain.min.js"></script>
<script src="qrc:/qtwebchannel/qwebchannel.js"></script>
Expand All @@ -14,10 +14,10 @@
var text_area = document.getElementById('text_area');
var updateText = function (text) {
var output = fountain.parse(text);
text_area.innerHTML = output.html.title_page + output.html.script;
text_area.innerHTML = '<div id="script">' + output.html.title_page + '<p>' + output.html.script + '</div>';
}
new QWebChannel(qt.webChannelTransport,
function(channel) {
function (channel) {
var content = channel.objects.content;
updateText(content.text);
content.textChanged.connect(updateText);
Expand Down
305 changes: 0 additions & 305 deletions fernanda/res/preview/include/fountain-js.css

This file was deleted.

2 changes: 2 additions & 0 deletions fernanda/res/preview/include/fountain.min.css

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion fernanda/res/preview/include/fountain.min.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion fernanda/res/preview/include/marked.min.js

Large diffs are not rendered by default.

1 change: 1 addition & 0 deletions fernanda/res/preview/markdown-overwrite.css
Original file line number Diff line number Diff line change
@@ -1,2 +1,3 @@
body {
background-color: ghostwhite;
}
Loading

0 comments on commit b3ab7c9

Please sign in to comment.