Skip to content

Commit 421a1d6

Browse files
teamconsyournamem
andauthored
4.0.0 Jorts of Hyperspace (#94)
* Make absolutely super sure the window is deleted (some of it stays in memory urg) * add more specific class * use more specific class naming, and use % instead of em * Forgot this * Programmatical to_class * forgot comma * metainfo * Trim README * sweep out deprecated theme * retire from_string * move libportal out * Correct wrong zoom class name * forgor semicolons * oops * bin unused function, make random the default * bin static functions, use an enum for zoom * Introduce a ZoomController to deal with this shit * Retire old now unused zomconvert * use static stylesheets * DRY and future proof by making a custom widget * do not keep hidden preferences * retire old themer service as we now statically do the stylesheets * move debounce to the manager * Avoid agressively theming everything * Fully clickable editablelabel * update PO * remove unused * Restore padding * Add a ctrl+scroll thingy * LETS GOOOOO * woops * hmmmm * try make it build * handler * introduce a scribblycontroller * Cast as widget * fix build mistake * skip the on focus gtk settings bullshit * Zoom which now functions * Update PO and restore some theming bullshit * this should be a debug * remove old strings * remove unused * this one too * Rebuild * updated size and branding * auto version * Avoid not being allowed to keep writing * fix some pissy bug where ctrl blocks text editing * fix menus changing size and line spacing --------- Co-authored-by: yournamem <[email protected]>
1 parent 1928db6 commit 421a1d6

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

92 files changed

+4187
-10526
lines changed

README.md

Lines changed: 15 additions & 44 deletions
Original file line numberDiff line numberDiff line change
@@ -18,38 +18,17 @@
1818
You can download and install Jorts from various sources:
1919

2020
[![Get it on AppCenter](https://appcenter.elementary.io/badge.svg?new)](https://appcenter.elementary.io/io.github.ellie_commons.jorts)
21-
[<img src="https://flathub.org/assets/badges/flathub-badge-en.svg" width="160" alt="Download on Flathub">](https://flathub.org/apps/io.github.ellie_commons.jorts)
22-
23-
## ❓ FAQ
24-
25-
### Where settings
26-
27-
- Right-click on the app icon, and it is in the menu that appears
28-
- You can also Ctrl+P to show the dialog
29-
- Or run in a terminal:
30-
31-
```bash
32-
flatpak run io.github.ellie_commons.jorts --preferences
33-
```
34-
35-
36-
### Where tray icon
37-
38-
Theres none. The app closes on its own when no window is open. Doesn't make sense to use resources if unused.
39-
40-
If you want to quit everything at once, use Ctrl+Q
4121

22+
[<img src="https://flathub.org/assets/badges/flathub-badge-en.svg" width="160" alt="Download on Flathub">](https://flathub.org/apps/io.github.ellie_commons.jorts)
4223

43-
### Where close note
4424

45-
Theres none. If you dont need a note you delete it, theyre supposed to be ephemeral.
46-
You can still alt+F4 or right-click->Close, but there is no reopen mechanism, and i dont wanna make one. Everything shows upon reopening the app anyway
25+
On Windows:
26+
Grab the Exe installer in Release
4727

4828

49-
### Where Bold/Italic/etc
29+
## ❓ Questions, building, etc
5030

51-
I really want to avoid UI noise and resource usage. Notes are just, notes. The more complicated they become the less they are ephemeral notes and the more this looks like some notekeeping app. Which is what NoteJot, this was forked from, became.
52-
Now i know i added some stuff when maintaining the old version of NoteJot, but it doesn't mean it should have more, or everything.
31+
[Check the wiki, lol](https://github.com/ellie-commons/jorts/wiki/%F0%9F%8F%A1Home)
5332

5433

5534

@@ -68,26 +47,9 @@ On the right you can donate to various contributors:
6847
- lains, the initial creator of the app (It was Notejot, now something very different)
6948

7049

71-
## 🏗️ Building
72-
73-
Installation is as simple as installing the above, downloading and extracting the zip archive, changing to the new repo's directory,
74-
and run the following command:
75-
76-
On elementary OS or with its appcenter remote installed
77-
78-
```bash
79-
flatpak-builder --force-clean --user --install-deps-from=appcenter --install builddir ./io.github.ellie_commons.jorts.yml
80-
```
81-
82-
On other systems:
83-
84-
```bash
85-
flatpak run org.flatpak.Builder --force-clean --sandbox --user --install --install-deps-from=flathub --ccache --mirror-screenshots-url=https://dl.flathub.org/media/ --repo=repo builddir io.github.ellie_commons.jorts.flathub.yml
86-
```
87-
88-
8950
## 💾 Notes Storage
9051

52+
9153
Notes are stored in `~/.var/app/io.github.ellie_commons.jorts/data`
9254

9355
You can get it all by entering in a terminal:
@@ -99,3 +61,12 @@ cp ~/.var/app/io.github.ellie_commons.jorts/data ~/
9961
"saved_state.json" contains all notes in JSON format. The structure is quite simple, if not pretty.
10062

10163
The app reads from it only during startup (rest of the time it writes in) so you could quite easily swap it up to swap between sets of notes.
64+
65+
66+
67+
ON WINDOWS: It's in:
68+
69+
YourUserFolder \AppData\Local\io.github.ellie_commons.jorts
70+
71+
AppData is a hidden folder. Either you paste the above path in the path bar, from your user folder
72+
Or you do a "Show hidden files"

data/Application.css

Lines changed: 56 additions & 50 deletions
Original file line numberDiff line numberDiff line change
@@ -24,14 +24,13 @@ windowcontrols:backdrop button {
2424

2525
editablelabel {
2626
font-weight: 800;
27+
text-shadow: 0px 1px rgba(255,255,255,0.5);
2728
padding-left: 24px;
2829
padding-right: 24px;
29-
text-shadow: 0px 1px rgba(255,255,255,0.5);
30-
/* text-shadow: none; */
3130
letter-spacing: .04em;
3231
}
3332

34-
textview,
33+
textview.view,
3534
editablelabel.editing {
3635
background-image: none;
3736
font-weight: 500;
@@ -46,6 +45,12 @@ popover button image {
4645
color: @fg_color;
4746
}
4847

48+
/* Avoid zoom bleeding out into the menus */
49+
popover * {
50+
line-height: initial;
51+
}
52+
53+
/* Pretty actionbar blending into background */
4954
actionbar {
5055
box-shadow: none; /*Pondering. It looks good with, too */
5156
background-color: transparent;
@@ -66,70 +71,71 @@ actionbar .themedbutton:focus {
6671
}
6772

6873
/* Obfuscate note */
69-
.scribbly {
74+
window.scribbly textview.view,
75+
window.scribbly editablelabel {
7076
font-family: "Redacted Script";
7177
}
7278

7379
/* Font zooms */
74-
window.antsized textview {font-size: 0.4em;}
75-
window.antsized editablelabel {font-size: 0.25em;}
76-
window.antsized editablelabel.editing {font-size: 0.20em;}
80+
window.s20 textview.view {font-size: 40%;}
81+
window.s20 editablelabel {font-size: 25%;}
82+
window.s20 editablelabel.editing {font-size: 20%;}
7783

78-
window.muchsmaller textview {font-size: 0.6em;}
79-
window.muchsmaller editablelabel {font-size: 0.45em;}
80-
window.muchsmaller editablelabel.editing {font-size: 0.40em;}
84+
window.s40 textview.view {font-size: 60%;}
85+
window.s40 editablelabel {font-size: 45%;}
86+
window.s40 editablelabel.editing {font-size: 40%;}
8187

82-
window.smaller textview {font-size: 0.8em;}
83-
window.smaller editablelabel {font-size: 0.65em;}
84-
window.smaller editablelabel.editing {font-size: 0.60em;}
88+
window.s60 textview.view {font-size: 80%;}
89+
window.s60 editablelabel {font-size: 65%;}
90+
window.s60 editablelabel.editing {font-size: 60%;}
8591

86-
window.small textview {font-size: 1.0em;}
87-
window.small editablelabel {font-size: 0.85em;}
88-
window.small editablelabel.editing {font-size: 0.80em;}
92+
window.s80 textview.view {font-size: 100%;}
93+
window.s80 editablelabel {font-size: 85%;}
94+
window.s80 editablelabel.editing {font-size: 80%;}
8995

90-
window.normal_zoom textview {font-size: 1.2em;}
91-
window.normal_zoom editablelabel {font-size: 1.05em;}
92-
window.normal_zoom editablelabel.editing {font-size: 1em;}
96+
window.s100 textview.view {font-size: 120%;}
97+
window.s100 editablelabel {font-size: 105%;}
98+
window.s100 editablelabel.editing {font-size: 100%;}
9399

94-
window.big textview {font-size: 1.4em;}
95-
window.big editablelabel {font-size: 1.25em;}
96-
window.big editablelabel.editing {font-size: 1.20em;}
100+
window.s120 textview.view {font-size: 140%;}
101+
window.s120 editablelabel {font-size: 125%;}
102+
window.s120 editablelabel.editing {font-size: 120%;}
97103

98-
window.bigger textview {font-size: 1.6em;}
99-
window.bigger editablelabel {font-size: 1.45em;}
100-
window.bigger editablelabel.editing {font-size: 1.40em;}
104+
window.s140 textview.view {font-size: 160%;}
105+
window.s140 editablelabel {font-size: 145%;}
106+
window.s140 editablelabel.editing {font-size: 140%;}
101107

102-
window.muchbigger textview {font-size: 1.8em;}
103-
window.muchbigger editablelabel {font-size: 1.65em;}
104-
window.muchbigger editablelabel.editing {font-size: 1.60em;}
108+
window.s160 textview.view {font-size: 180%;}
109+
window.s160 editablelabel {font-size: 165%;}
110+
window.s160 editablelabel.editing {font-size: 160%;}
105111

106-
window.muchmuchbigger textview {font-size: 2em;}
107-
window.muchmuchbigger editablelabel {font-size: 1.85em;}
108-
window.muchmuchbigger editablelabel.editing {font-size: 1.80em;}
112+
window.s180 textview.view {font-size: 200%;}
113+
window.s180 editablelabel {font-size: 185%;}
114+
window.s180 editablelabel.editing {font-size: 180%;}
109115

110-
window.huge textview {font-size: 2.2em;}
111-
window.huge editablelabel {font-size: 2.05em;}
112-
window.huge editablelabel.editing {font-size: 2.00em;}
116+
window.s200 textview.view {font-size: 220%;}
117+
window.s200 editablelabel {font-size: 205%;}
118+
window.s200 editablelabel.editing {font-size: 200%;}
113119

114-
window.superhuge textview {font-size: 2.4em;}
115-
window.superhuge editablelabel {font-size: 2.25em;}
116-
window.superhuge editablelabel.editing {font-size: 2.20em;}
120+
window.s220 textview.view {font-size: 240%;}
121+
window.s220 editablelabel {font-size: 225%;}
122+
window.s220 editablelabel.editing {font-size: 220%;}
117123

118-
window.megahuge textview {font-size: 2.6em;}
119-
window.megahuge editablelabel {font-size: 2.45em;}
120-
window.megahuge editablelabel.editing {font-size: 2.40em;}
124+
window.s240 textview.view {font-size: 260%;}
125+
window.s240 editablelabel {font-size: 245%;}
126+
window.s240 editablelabel.editing {font-size: 240%;}
121127

122-
window.ultrahuge textview {font-size: 2.8em;}
123-
window.ultrahuge editablelabel {font-size: 2.65em;}
124-
window.ultrahuge editablelabel.editing {font-size: 2.60em;}
128+
window.s260 textview.view {font-size: 280%;}
129+
window.s260 editablelabel {font-size: 265%;}
130+
window.s260 editablelabel.editing {font-size: 260%;}
125131

126-
window.massive textview {font-size: 3em;}
127-
window.massive editablelabel {font-size: 2.85em;}
128-
window.massive editablelabel.editing {font-size: 2.80em;}
132+
window.s280 textview.view {font-size: 300%;}
133+
window.s280 editablelabel {font-size: 285%;}
134+
window.s280 editablelabel.editing {font-size: 280%;}
129135

130-
window.urmom textview {font-size: 3.2em;}
131-
window.urmom editablelabel {font-size: 3.05em;}
132-
window.urmom editablelabel.editing {font-size: 3.00em;}
136+
window.s300 textview.view {font-size: 320%;}
137+
window.s300 editablelabel {font-size: 305%;}
138+
window.s300 editablelabel.editing {font-size: 300%;}
133139

134140

135141
/* ALL the colorpills */
@@ -194,4 +200,4 @@ window.animated actionbar .themedbutton:focus {
194200
window.animated editablelabel,
195201
window.animated actionbar image {
196202
transition: color 750ms cubic-bezier(0.4, 0, 0.2, 1);
197-
}
203+
}

0 commit comments

Comments
 (0)