bouquin 0.4.2__tar.gz → 0.4.3__tar.gz
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- {bouquin-0.4.2 → bouquin-0.4.3}/PKG-INFO +26 -4
- {bouquin-0.4.2 → bouquin-0.4.3}/README.md +25 -3
- bouquin-0.4.3/bouquin/fonts/NotoSansSymbols2-Regular.ttf +0 -0
- bouquin-0.4.3/bouquin/fonts/OFL.txt +93 -0
- bouquin-0.4.3/bouquin/icons/bouquin-light.svg +145 -0
- bouquin-0.4.3/bouquin/icons/bouquin.svg +145 -0
- {bouquin-0.4.2 → bouquin-0.4.3}/bouquin/main.py +7 -0
- {bouquin-0.4.2 → bouquin-0.4.3}/bouquin/main_window.py +1 -1
- {bouquin-0.4.2 → bouquin-0.4.3}/bouquin/markdown_editor.py +7 -2
- {bouquin-0.4.2 → bouquin-0.4.3}/bouquin/markdown_highlighter.py +1 -9
- {bouquin-0.4.2 → bouquin-0.4.3}/pyproject.toml +4 -1
- {bouquin-0.4.2 → bouquin-0.4.3}/LICENSE +0 -0
- {bouquin-0.4.2 → bouquin-0.4.3}/bouquin/__init__.py +0 -0
- {bouquin-0.4.2 → bouquin-0.4.3}/bouquin/__main__.py +0 -0
- {bouquin-0.4.2 → bouquin-0.4.3}/bouquin/bug_report_dialog.py +0 -0
- {bouquin-0.4.2 → bouquin-0.4.3}/bouquin/db.py +0 -0
- {bouquin-0.4.2 → bouquin-0.4.3}/bouquin/find_bar.py +0 -0
- {bouquin-0.4.2 → bouquin-0.4.3}/bouquin/flow_layout.py +0 -0
- {bouquin-0.4.2 → bouquin-0.4.3}/bouquin/history_dialog.py +0 -0
- {bouquin-0.4.2 → bouquin-0.4.3}/bouquin/key_prompt.py +0 -0
- {bouquin-0.4.2 → bouquin-0.4.3}/bouquin/locales/en.json +0 -0
- {bouquin-0.4.2 → bouquin-0.4.3}/bouquin/locales/fr.json +0 -0
- {bouquin-0.4.2 → bouquin-0.4.3}/bouquin/locales/it.json +0 -0
- {bouquin-0.4.2 → bouquin-0.4.3}/bouquin/lock_overlay.py +0 -0
- {bouquin-0.4.2 → bouquin-0.4.3}/bouquin/save_dialog.py +0 -0
- {bouquin-0.4.2 → bouquin-0.4.3}/bouquin/search.py +0 -0
- {bouquin-0.4.2 → bouquin-0.4.3}/bouquin/settings.py +0 -0
- {bouquin-0.4.2 → bouquin-0.4.3}/bouquin/settings_dialog.py +0 -0
- {bouquin-0.4.2 → bouquin-0.4.3}/bouquin/statistics_dialog.py +0 -0
- {bouquin-0.4.2 → bouquin-0.4.3}/bouquin/strings.py +0 -0
- {bouquin-0.4.2 → bouquin-0.4.3}/bouquin/tag_browser.py +0 -0
- {bouquin-0.4.2 → bouquin-0.4.3}/bouquin/tags_widget.py +0 -0
- {bouquin-0.4.2 → bouquin-0.4.3}/bouquin/theme.py +0 -0
- {bouquin-0.4.2 → bouquin-0.4.3}/bouquin/time_log.py +0 -0
- {bouquin-0.4.2 → bouquin-0.4.3}/bouquin/toolbar.py +0 -0
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.1
|
|
2
2
|
Name: bouquin
|
|
3
|
-
Version: 0.4.
|
|
3
|
+
Version: 0.4.3
|
|
4
4
|
Summary: Bouquin is a simple, opinionated notebook application written in Python, PyQt and SQLCipher.
|
|
5
5
|
Home-page: https://git.mig5.net/mig5/bouquin
|
|
6
6
|
License: GPL-3.0-or-later
|
|
@@ -20,6 +20,9 @@ Description-Content-Type: text/markdown
|
|
|
20
20
|
|
|
21
21
|
# Bouquin
|
|
22
22
|
|
|
23
|
+
<div align="center">
|
|
24
|
+
<img src="https://git.mig5.net/mig5/bouquin/raw/branch/main/bouquin/icons/bouquin.svg" alt="Bouquin logo" width="240" />
|
|
25
|
+
</div>
|
|
23
26
|
|
|
24
27
|
## Introduction
|
|
25
28
|
|
|
@@ -41,11 +44,28 @@ report from within the app.
|
|
|
41
44
|
## Screenshots
|
|
42
45
|
|
|
43
46
|
### General view
|
|
44
|
-
|
|
47
|
+
<div align="center">
|
|
48
|
+
<a href="https://git.mig5.net/mig5/bouquin/raw/branch/main/screenshots/screenshot.png"><img src="https://git.mig5.net/mig5/bouquin/raw/branch/main/screenshots/screenshot.png" alt="Bouquin screenshot" /></a>
|
|
49
|
+
</div>
|
|
45
50
|
|
|
46
51
|
### History panes
|
|
47
|
-
|
|
48
|
-
|
|
52
|
+
<div align="center">
|
|
53
|
+
<a href="https://git.mig5.net/mig5/bouquin/raw/branch/main/screenshots/history_preview.png"><img src="https://git.mig5.net/mig5/bouquin/raw/branch/main/screenshots/history_preview.png" alt="Screenshot of Bouquin History Preview Pane" width="500" style="margin: 0 10px;" /></a>
|
|
54
|
+
<a href="https://git.mig5.net/mig5/bouquin/raw/branch/main/screenshots/history_diff.png"><img src="https://git.mig5.net/mig5/bouquin/raw/branch/main/screenshots/history_diff.png" alt="Screenshot of Bouquin History Diff Pane" width="500" style="margin: 0 10px;" /></a>
|
|
55
|
+
</div>
|
|
56
|
+
|
|
57
|
+
### Tags and Time Logging
|
|
58
|
+
<div align="center">
|
|
59
|
+
<a href="https://git.mig5.net/mig5/bouquin/raw/branch/main/screenshots/tags.png"><img src="https://git.mig5.net/mig5/bouquin/raw/branch/main/screenshots/tags.png" alt="Screenshot of Bouquin Tag Manager screen" width="500" style="margin: 0 10px;" /></a>
|
|
60
|
+
<a href="https://git.mig5.net/mig5/bouquin/raw/branch/main/screenshots/time.png"><img src="https://git.mig5.net/mig5/bouquin/raw/branch/main/screenshots/time.png" alt="Screenshot of Bouquin Time Log screens" width="500" style="margin: 0 10px;" /></a>
|
|
61
|
+
</div>
|
|
62
|
+
|
|
63
|
+
|
|
64
|
+
### Statistics
|
|
65
|
+
<div align="center">
|
|
66
|
+
<a href="https://git.mig5.net/mig5/bouquin/raw/branch/main/screenshots/statistics.png"><img src="https://git.mig5.net/mig5/bouquin/raw/branch/main/screenshots/statistics.png" alt="Bouquin statistics" /></a>
|
|
67
|
+
</div>
|
|
68
|
+
|
|
49
69
|
|
|
50
70
|
## Some of the features
|
|
51
71
|
|
|
@@ -74,6 +94,8 @@ report from within the app.
|
|
|
74
94
|
|
|
75
95
|
Make sure you have `libxcb-cursor0` installed (it may be called something else on non-Debian distributions).
|
|
76
96
|
|
|
97
|
+
It's also recommended that you have Noto Sans fonts installed, but it's up to you. It just can impact the display of unicode symbols such as checkboxes.
|
|
98
|
+
|
|
77
99
|
If downloading from my Forgejo's Releases page, you may wish to verify the GPG signatures with my [GPG key](https://mig5.net/static/mig5.asc).
|
|
78
100
|
|
|
79
101
|
### From PyPi/pip
|
|
@@ -1,5 +1,8 @@
|
|
|
1
1
|
# Bouquin
|
|
2
2
|
|
|
3
|
+
<div align="center">
|
|
4
|
+
<img src="https://git.mig5.net/mig5/bouquin/raw/branch/main/bouquin/icons/bouquin.svg" alt="Bouquin logo" width="240" />
|
|
5
|
+
</div>
|
|
3
6
|
|
|
4
7
|
## Introduction
|
|
5
8
|
|
|
@@ -21,11 +24,28 @@ report from within the app.
|
|
|
21
24
|
## Screenshots
|
|
22
25
|
|
|
23
26
|
### General view
|
|
24
|
-
|
|
27
|
+
<div align="center">
|
|
28
|
+
<a href="https://git.mig5.net/mig5/bouquin/raw/branch/main/screenshots/screenshot.png"><img src="https://git.mig5.net/mig5/bouquin/raw/branch/main/screenshots/screenshot.png" alt="Bouquin screenshot" /></a>
|
|
29
|
+
</div>
|
|
25
30
|
|
|
26
31
|
### History panes
|
|
27
|
-
|
|
28
|
-
|
|
32
|
+
<div align="center">
|
|
33
|
+
<a href="https://git.mig5.net/mig5/bouquin/raw/branch/main/screenshots/history_preview.png"><img src="https://git.mig5.net/mig5/bouquin/raw/branch/main/screenshots/history_preview.png" alt="Screenshot of Bouquin History Preview Pane" width="500" style="margin: 0 10px;" /></a>
|
|
34
|
+
<a href="https://git.mig5.net/mig5/bouquin/raw/branch/main/screenshots/history_diff.png"><img src="https://git.mig5.net/mig5/bouquin/raw/branch/main/screenshots/history_diff.png" alt="Screenshot of Bouquin History Diff Pane" width="500" style="margin: 0 10px;" /></a>
|
|
35
|
+
</div>
|
|
36
|
+
|
|
37
|
+
### Tags and Time Logging
|
|
38
|
+
<div align="center">
|
|
39
|
+
<a href="https://git.mig5.net/mig5/bouquin/raw/branch/main/screenshots/tags.png"><img src="https://git.mig5.net/mig5/bouquin/raw/branch/main/screenshots/tags.png" alt="Screenshot of Bouquin Tag Manager screen" width="500" style="margin: 0 10px;" /></a>
|
|
40
|
+
<a href="https://git.mig5.net/mig5/bouquin/raw/branch/main/screenshots/time.png"><img src="https://git.mig5.net/mig5/bouquin/raw/branch/main/screenshots/time.png" alt="Screenshot of Bouquin Time Log screens" width="500" style="margin: 0 10px;" /></a>
|
|
41
|
+
</div>
|
|
42
|
+
|
|
43
|
+
|
|
44
|
+
### Statistics
|
|
45
|
+
<div align="center">
|
|
46
|
+
<a href="https://git.mig5.net/mig5/bouquin/raw/branch/main/screenshots/statistics.png"><img src="https://git.mig5.net/mig5/bouquin/raw/branch/main/screenshots/statistics.png" alt="Bouquin statistics" /></a>
|
|
47
|
+
</div>
|
|
48
|
+
|
|
29
49
|
|
|
30
50
|
## Some of the features
|
|
31
51
|
|
|
@@ -54,6 +74,8 @@ report from within the app.
|
|
|
54
74
|
|
|
55
75
|
Make sure you have `libxcb-cursor0` installed (it may be called something else on non-Debian distributions).
|
|
56
76
|
|
|
77
|
+
It's also recommended that you have Noto Sans fonts installed, but it's up to you. It just can impact the display of unicode symbols such as checkboxes.
|
|
78
|
+
|
|
57
79
|
If downloading from my Forgejo's Releases page, you may wish to verify the GPG signatures with my [GPG key](https://mig5.net/static/mig5.asc).
|
|
58
80
|
|
|
59
81
|
### From PyPi/pip
|
|
Binary file
|
|
@@ -0,0 +1,93 @@
|
|
|
1
|
+
Copyright 2022 The Noto Project Authors (https://github.com/notofonts/symbols)
|
|
2
|
+
|
|
3
|
+
This Font Software is licensed under the SIL Open Font License, Version 1.1.
|
|
4
|
+
This license is copied below, and is also available with a FAQ at:
|
|
5
|
+
https://openfontlicense.org
|
|
6
|
+
|
|
7
|
+
|
|
8
|
+
-----------------------------------------------------------
|
|
9
|
+
SIL OPEN FONT LICENSE Version 1.1 - 26 February 2007
|
|
10
|
+
-----------------------------------------------------------
|
|
11
|
+
|
|
12
|
+
PREAMBLE
|
|
13
|
+
The goals of the Open Font License (OFL) are to stimulate worldwide
|
|
14
|
+
development of collaborative font projects, to support the font creation
|
|
15
|
+
efforts of academic and linguistic communities, and to provide a free and
|
|
16
|
+
open framework in which fonts may be shared and improved in partnership
|
|
17
|
+
with others.
|
|
18
|
+
|
|
19
|
+
The OFL allows the licensed fonts to be used, studied, modified and
|
|
20
|
+
redistributed freely as long as they are not sold by themselves. The
|
|
21
|
+
fonts, including any derivative works, can be bundled, embedded,
|
|
22
|
+
redistributed and/or sold with any software provided that any reserved
|
|
23
|
+
names are not used by derivative works. The fonts and derivatives,
|
|
24
|
+
however, cannot be released under any other type of license. The
|
|
25
|
+
requirement for fonts to remain under this license does not apply
|
|
26
|
+
to any document created using the fonts or their derivatives.
|
|
27
|
+
|
|
28
|
+
DEFINITIONS
|
|
29
|
+
"Font Software" refers to the set of files released by the Copyright
|
|
30
|
+
Holder(s) under this license and clearly marked as such. This may
|
|
31
|
+
include source files, build scripts and documentation.
|
|
32
|
+
|
|
33
|
+
"Reserved Font Name" refers to any names specified as such after the
|
|
34
|
+
copyright statement(s).
|
|
35
|
+
|
|
36
|
+
"Original Version" refers to the collection of Font Software components as
|
|
37
|
+
distributed by the Copyright Holder(s).
|
|
38
|
+
|
|
39
|
+
"Modified Version" refers to any derivative made by adding to, deleting,
|
|
40
|
+
or substituting -- in part or in whole -- any of the components of the
|
|
41
|
+
Original Version, by changing formats or by porting the Font Software to a
|
|
42
|
+
new environment.
|
|
43
|
+
|
|
44
|
+
"Author" refers to any designer, engineer, programmer, technical
|
|
45
|
+
writer or other person who contributed to the Font Software.
|
|
46
|
+
|
|
47
|
+
PERMISSION & CONDITIONS
|
|
48
|
+
Permission is hereby granted, free of charge, to any person obtaining
|
|
49
|
+
a copy of the Font Software, to use, study, copy, merge, embed, modify,
|
|
50
|
+
redistribute, and sell modified and unmodified copies of the Font
|
|
51
|
+
Software, subject to the following conditions:
|
|
52
|
+
|
|
53
|
+
1) Neither the Font Software nor any of its individual components,
|
|
54
|
+
in Original or Modified Versions, may be sold by itself.
|
|
55
|
+
|
|
56
|
+
2) Original or Modified Versions of the Font Software may be bundled,
|
|
57
|
+
redistributed and/or sold with any software, provided that each copy
|
|
58
|
+
contains the above copyright notice and this license. These can be
|
|
59
|
+
included either as stand-alone text files, human-readable headers or
|
|
60
|
+
in the appropriate machine-readable metadata fields within text or
|
|
61
|
+
binary files as long as those fields can be easily viewed by the user.
|
|
62
|
+
|
|
63
|
+
3) No Modified Version of the Font Software may use the Reserved Font
|
|
64
|
+
Name(s) unless explicit written permission is granted by the corresponding
|
|
65
|
+
Copyright Holder. This restriction only applies to the primary font name as
|
|
66
|
+
presented to the users.
|
|
67
|
+
|
|
68
|
+
4) The name(s) of the Copyright Holder(s) or the Author(s) of the Font
|
|
69
|
+
Software shall not be used to promote, endorse or advertise any
|
|
70
|
+
Modified Version, except to acknowledge the contribution(s) of the
|
|
71
|
+
Copyright Holder(s) and the Author(s) or with their explicit written
|
|
72
|
+
permission.
|
|
73
|
+
|
|
74
|
+
5) The Font Software, modified or unmodified, in part or in whole,
|
|
75
|
+
must be distributed entirely under this license, and must not be
|
|
76
|
+
distributed under any other license. The requirement for fonts to
|
|
77
|
+
remain under this license does not apply to any document created
|
|
78
|
+
using the Font Software.
|
|
79
|
+
|
|
80
|
+
TERMINATION
|
|
81
|
+
This license becomes null and void if any of the above conditions are
|
|
82
|
+
not met.
|
|
83
|
+
|
|
84
|
+
DISCLAIMER
|
|
85
|
+
THE FONT SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
|
|
86
|
+
EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO ANY WARRANTIES OF
|
|
87
|
+
MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT
|
|
88
|
+
OF COPYRIGHT, PATENT, TRADEMARK, OR OTHER RIGHT. IN NO EVENT SHALL THE
|
|
89
|
+
COPYRIGHT HOLDER BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY,
|
|
90
|
+
INCLUDING ANY GENERAL, SPECIAL, INDIRECT, INCIDENTAL, OR CONSEQUENTIAL
|
|
91
|
+
DAMAGES, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
|
|
92
|
+
FROM, OUT OF THE USE OR INABILITY TO USE THE FONT SOFTWARE OR FROM
|
|
93
|
+
OTHER DEALINGS IN THE FONT SOFTWARE.
|
|
@@ -0,0 +1,145 @@
|
|
|
1
|
+
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 512 512" role="img" aria-labelledby="title desc">
|
|
2
|
+
<title id="title">Bouquin</title>
|
|
3
|
+
<desc id="desc">
|
|
4
|
+
A notebook with a centered B-shaped right edge, a shield and keyhole as the upper hole of a B,
|
|
5
|
+
and a green-blue neon version control fork as the lower hole, on a lighter toolbar-friendly background.
|
|
6
|
+
</desc>
|
|
7
|
+
|
|
8
|
+
<defs>
|
|
9
|
+
<!-- Lighter background gradient for toolbar use -->
|
|
10
|
+
<linearGradient id="bgGrad" x1="0" y1="0" x2="0" y2="1">
|
|
11
|
+
<stop offset="0%" stop-color="#e5f2ff"/> <!-- very light blue -->
|
|
12
|
+
<stop offset="100%" stop-color="#cbd5f5"/> <!-- soft indigo-ish -->
|
|
13
|
+
</linearGradient>
|
|
14
|
+
|
|
15
|
+
<!-- Shield gradient -->
|
|
16
|
+
<linearGradient id="shieldGrad" x1="0" y1="0" x2="0" y2="1">
|
|
17
|
+
<stop offset="0%" stop-color="#22c55e"/>
|
|
18
|
+
<stop offset="100%" stop-color="#14b8a6"/>
|
|
19
|
+
</linearGradient>
|
|
20
|
+
|
|
21
|
+
<!-- Version control neon stroke gradient (used for all segments) -->
|
|
22
|
+
<linearGradient id="vcGradAll" x1="0" y1="0" x2="1" y2="1">
|
|
23
|
+
<stop offset="0%" stop-color="#6ee7b7"/> <!-- mint green -->
|
|
24
|
+
<stop offset="35%" stop-color="#22c55e"/> <!-- bright green -->
|
|
25
|
+
<stop offset="75%" stop-color="#38bdf8"/> <!-- teal-blue -->
|
|
26
|
+
<stop offset="100%" stop-color="#0ea5e9"/> <!-- blue neon -->
|
|
27
|
+
</linearGradient>
|
|
28
|
+
|
|
29
|
+
<!-- Soft glow for version control lines -->
|
|
30
|
+
<filter id="vcGlow" x="-50%" y="-50%" width="200%" height="200%">
|
|
31
|
+
<feGaussianBlur stdDeviation="3" result="blur"/>
|
|
32
|
+
<feColorMatrix
|
|
33
|
+
in="blur"
|
|
34
|
+
type="matrix"
|
|
35
|
+
values="
|
|
36
|
+
0 0 0 0 0.30
|
|
37
|
+
0 0 0 0 0.90
|
|
38
|
+
0 0 0 0 0.85
|
|
39
|
+
0 0 0 0.85 0" />
|
|
40
|
+
</filter>
|
|
41
|
+
</defs>
|
|
42
|
+
|
|
43
|
+
<!-- Background rounded square (now light) -->
|
|
44
|
+
<rect x="32" y="32" width="448" height="448" rx="96" ry="96"
|
|
45
|
+
fill="url(#bgGrad)" stroke="#94a3b8" stroke-width="2"/>
|
|
46
|
+
|
|
47
|
+
<!-- Notebook body with centered, deeper B-like indent on the right edge -->
|
|
48
|
+
<path
|
|
49
|
+
d="
|
|
50
|
+
M 148 96
|
|
51
|
+
H 360
|
|
52
|
+
Q 384 96 384 120
|
|
53
|
+
V 224
|
|
54
|
+
Q 304 256 384 288
|
|
55
|
+
V 392
|
|
56
|
+
Q 384 416 360 416
|
|
57
|
+
H 148
|
|
58
|
+
Q 128 416 128 396
|
|
59
|
+
V 116
|
|
60
|
+
Q 128 96 148 96
|
|
61
|
+
Z
|
|
62
|
+
"
|
|
63
|
+
fill="#202738"
|
|
64
|
+
stroke="#3a4254"
|
|
65
|
+
stroke-width="4"
|
|
66
|
+
/>
|
|
67
|
+
|
|
68
|
+
<!-- Notebook spine -->
|
|
69
|
+
<rect x="128" y="96" width="20" height="320" rx="12" ry="12" fill="#3ddc97"/>
|
|
70
|
+
|
|
71
|
+
<!-- Shield + keyhole (upper "hole" of the B) -->
|
|
72
|
+
<g transform="translate(0,-56)">
|
|
73
|
+
<!-- Shield -->
|
|
74
|
+
<path d="M 256 180 L 296 196 L 296 244 C 296 269 281 296 256 308 C 231 296 216 269 216 244 L 216 196 Z"
|
|
75
|
+
fill="url(#shieldGrad)" stroke="#0f172a" stroke-width="4"/>
|
|
76
|
+
|
|
77
|
+
<!-- Keyhole -->
|
|
78
|
+
<circle cx="256" cy="216" r="10" fill="#020617"/>
|
|
79
|
+
<rect x="248" y="226" width="16" height="26" rx="8" ry="8" fill="#020617"/>
|
|
80
|
+
</g>
|
|
81
|
+
|
|
82
|
+
<!-- Version control graph: lower "hole" of the B with green-blue neon -->
|
|
83
|
+
<!-- Glow layer behind -->
|
|
84
|
+
<g transform="translate(0,-66)"
|
|
85
|
+
stroke="#22c55e" stroke-width="4" fill="#22c55e" opacity="0.6"
|
|
86
|
+
filter="url(#vcGlow)">
|
|
87
|
+
<!-- Short stem under shield -->
|
|
88
|
+
<path d="M 256 318 L 256 332" fill="none" stroke-linecap="round"/>
|
|
89
|
+
|
|
90
|
+
<!-- Root node -->
|
|
91
|
+
<circle cx="256" cy="332" r="7"/>
|
|
92
|
+
|
|
93
|
+
<!-- Left branch (shorter) -->
|
|
94
|
+
<path d="M 256 332 L 236 360" fill="none"
|
|
95
|
+
stroke-linecap="round" stroke-linejoin="round"/>
|
|
96
|
+
<path d="M 236 360 L 236 395" fill="none"
|
|
97
|
+
stroke-linecap="round"/>
|
|
98
|
+
|
|
99
|
+
<!-- Center branch (longest) -->
|
|
100
|
+
<path d="M 256 332 L 256 422" fill="none"
|
|
101
|
+
stroke-linecap="round"/>
|
|
102
|
+
|
|
103
|
+
<!-- Right branch (medium) -->
|
|
104
|
+
<path d="M 256 332 L 276 360" fill="none"
|
|
105
|
+
stroke-linecap="round" stroke-linejoin="round"/>
|
|
106
|
+
<path d="M 276 360 L 276 410" fill="none"
|
|
107
|
+
stroke-linecap="round"/>
|
|
108
|
+
|
|
109
|
+
<!-- Leaf nodes -->
|
|
110
|
+
<circle cx="236" cy="395" r="8"/>
|
|
111
|
+
<circle cx="256" cy="422" r="8"/>
|
|
112
|
+
<circle cx="276" cy="410" r="8"/>
|
|
113
|
+
</g>
|
|
114
|
+
|
|
115
|
+
<!-- Main neon gradient strokes on top -->
|
|
116
|
+
<g transform="translate(0,-66)"
|
|
117
|
+
stroke="url(#vcGradAll)" stroke-width="4.5" fill="#bbf7d0" opacity="1">
|
|
118
|
+
<!-- Short stem under shield -->
|
|
119
|
+
<path d="M 256 318 L 256 332" fill="none" stroke-linecap="round"/>
|
|
120
|
+
|
|
121
|
+
<!-- Root node -->
|
|
122
|
+
<circle cx="256" cy="332" r="7"/>
|
|
123
|
+
|
|
124
|
+
<!-- Left branch (shorter) -->
|
|
125
|
+
<path d="M 256 332 L 236 360" fill="none"
|
|
126
|
+
stroke-linecap="round" stroke-linejoin="round"/>
|
|
127
|
+
<path d="M 236 360 L 236 395" fill="none"
|
|
128
|
+
stroke-linecap="round"/>
|
|
129
|
+
|
|
130
|
+
<!-- Center branch (longest) -->
|
|
131
|
+
<path d="M 256 332 L 256 422" fill="none"
|
|
132
|
+
stroke-linecap="round"/>
|
|
133
|
+
|
|
134
|
+
<!-- Right branch (medium) -->
|
|
135
|
+
<path d="M 256 332 L 276 360" fill="none"
|
|
136
|
+
stroke-linecap="round" stroke-linejoin="round"/>
|
|
137
|
+
<path d="M 276 360 L 276 410" fill="none"
|
|
138
|
+
stroke-linecap="round"/>
|
|
139
|
+
|
|
140
|
+
<!-- Leaf nodes -->
|
|
141
|
+
<circle cx="236" cy="395" r="8"/>
|
|
142
|
+
<circle cx="256" cy="422" r="8"/>
|
|
143
|
+
<circle cx="276" cy="410" r="8"/>
|
|
144
|
+
</g>
|
|
145
|
+
</svg>
|
|
@@ -0,0 +1,145 @@
|
|
|
1
|
+
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 512 512" role="img" aria-labelledby="title desc">
|
|
2
|
+
<title id="title">Bouquin</title>
|
|
3
|
+
<desc id="desc">
|
|
4
|
+
A notebook with a centered B-shaped right edge, a shield and keyhole as the upper hole of a B,
|
|
5
|
+
and a green-blue neon version control fork as the lower hole, with one shorter branch like a git fork.
|
|
6
|
+
</desc>
|
|
7
|
+
|
|
8
|
+
<defs>
|
|
9
|
+
<!-- Background gradient -->
|
|
10
|
+
<linearGradient id="bgGrad" x1="0" y1="0" x2="0" y2="1">
|
|
11
|
+
<stop offset="0%" stop-color="#101622"/>
|
|
12
|
+
<stop offset="100%" stop-color="#151b2b"/>
|
|
13
|
+
</linearGradient>
|
|
14
|
+
|
|
15
|
+
<!-- Shield gradient -->
|
|
16
|
+
<linearGradient id="shieldGrad" x1="0" y1="0" x2="0" y2="1">
|
|
17
|
+
<stop offset="0%" stop-color="#22c55e"/>
|
|
18
|
+
<stop offset="100%" stop-color="#14b8a6"/>
|
|
19
|
+
</linearGradient>
|
|
20
|
+
|
|
21
|
+
<!-- Version control neon stroke gradient (used for all segments) -->
|
|
22
|
+
<linearGradient id="vcGradAll" x1="0" y1="0" x2="1" y2="1">
|
|
23
|
+
<stop offset="0%" stop-color="#6ee7b7"/> <!-- mint green -->
|
|
24
|
+
<stop offset="35%" stop-color="#22c55e"/> <!-- bright green -->
|
|
25
|
+
<stop offset="75%" stop-color="#38bdf8"/> <!-- teal-blue -->
|
|
26
|
+
<stop offset="100%" stop-color="#0ea5e9"/> <!-- blue neon -->
|
|
27
|
+
</linearGradient>
|
|
28
|
+
|
|
29
|
+
<!-- Soft glow for version control lines -->
|
|
30
|
+
<filter id="vcGlow" x="-50%" y="-50%" width="200%" height="200%">
|
|
31
|
+
<feGaussianBlur stdDeviation="3" result="blur"/>
|
|
32
|
+
<feColorMatrix
|
|
33
|
+
in="blur"
|
|
34
|
+
type="matrix"
|
|
35
|
+
values="
|
|
36
|
+
0 0 0 0 0.30
|
|
37
|
+
0 0 0 0 0.90
|
|
38
|
+
0 0 0 0 0.85
|
|
39
|
+
0 0 0 0.85 0" />
|
|
40
|
+
</filter>
|
|
41
|
+
</defs>
|
|
42
|
+
|
|
43
|
+
<!-- Background rounded square -->
|
|
44
|
+
<rect x="32" y="32" width="448" height="448" rx="96" ry="96" fill="url(#bgGrad)"/>
|
|
45
|
+
|
|
46
|
+
<!-- Notebook body with centered, deeper B-like indent on the right edge -->
|
|
47
|
+
<path
|
|
48
|
+
d="
|
|
49
|
+
M 148 96
|
|
50
|
+
H 360
|
|
51
|
+
Q 384 96 384 120
|
|
52
|
+
V 224
|
|
53
|
+
Q 304 256 384 288
|
|
54
|
+
V 392
|
|
55
|
+
Q 384 416 360 416
|
|
56
|
+
H 148
|
|
57
|
+
Q 128 416 128 396
|
|
58
|
+
V 116
|
|
59
|
+
Q 128 96 148 96
|
|
60
|
+
Z
|
|
61
|
+
"
|
|
62
|
+
fill="#202738"
|
|
63
|
+
stroke="#3a4254"
|
|
64
|
+
stroke-width="4"
|
|
65
|
+
/>
|
|
66
|
+
|
|
67
|
+
<!-- Notebook spine -->
|
|
68
|
+
<rect x="128" y="96" width="20" height="320" rx="12" ry="12" fill="#3ddc97"/>
|
|
69
|
+
|
|
70
|
+
<!-- Shield + keyhole (upper "hole" of the B) -->
|
|
71
|
+
<g transform="translate(0,-56)">
|
|
72
|
+
<!-- Shield -->
|
|
73
|
+
<path d="M 256 180 L 296 196 L 296 244 C 296 269 281 296 256 308 C 231 296 216 269 216 244 L 216 196 Z"
|
|
74
|
+
fill="url(#shieldGrad)" stroke="#0f172a" stroke-width="4"/>
|
|
75
|
+
|
|
76
|
+
<!-- Keyhole -->
|
|
77
|
+
<circle cx="256" cy="216" r="10" fill="#020617"/>
|
|
78
|
+
<rect x="248" y="226" width="16" height="26" rx="8" ry="8" fill="#020617"/>
|
|
79
|
+
</g>
|
|
80
|
+
|
|
81
|
+
<!-- Version control graph: lower "hole" of the B with green-blue neon -->
|
|
82
|
+
<!-- Glow layer behind -->
|
|
83
|
+
<g transform="translate(0,-66)"
|
|
84
|
+
stroke="#22c55e" stroke-width="4" fill="#22c55e" opacity="0.6"
|
|
85
|
+
filter="url(#vcGlow)">
|
|
86
|
+
<!-- Short stem under shield -->
|
|
87
|
+
<path d="M 256 318 L 256 332" fill="none" stroke-linecap="round"/>
|
|
88
|
+
|
|
89
|
+
<!-- Root node -->
|
|
90
|
+
<circle cx="256" cy="332" r="7"/>
|
|
91
|
+
|
|
92
|
+
<!-- Left branch (shorter) -->
|
|
93
|
+
<path d="M 256 332 L 236 360" fill="none"
|
|
94
|
+
stroke-linecap="round" stroke-linejoin="round"/>
|
|
95
|
+
<path d="M 236 360 L 236 395" fill="none"
|
|
96
|
+
stroke-linecap="round"/>
|
|
97
|
+
|
|
98
|
+
<!-- Center branch (longest) -->
|
|
99
|
+
<path d="M 256 332 L 256 422" fill="none"
|
|
100
|
+
stroke-linecap="round"/>
|
|
101
|
+
|
|
102
|
+
<!-- Right branch (medium) -->
|
|
103
|
+
<path d="M 256 332 L 276 360" fill="none"
|
|
104
|
+
stroke-linecap="round" stroke-linejoin="round"/>
|
|
105
|
+
<path d="M 276 360 L 276 410" fill="none"
|
|
106
|
+
stroke-linecap="round"/>
|
|
107
|
+
|
|
108
|
+
<!-- Leaf nodes -->
|
|
109
|
+
<circle cx="236" cy="395" r="8"/>
|
|
110
|
+
<circle cx="256" cy="422" r="8"/>
|
|
111
|
+
<circle cx="276" cy="410" r="8"/>
|
|
112
|
+
</g>
|
|
113
|
+
|
|
114
|
+
<!-- Main neon gradient strokes on top -->
|
|
115
|
+
<g transform="translate(0,-66)"
|
|
116
|
+
stroke="url(#vcGradAll)" stroke-width="4.5" fill="#bbf7d0" opacity="1">
|
|
117
|
+
<!-- Short stem under shield -->
|
|
118
|
+
<path d="M 256 318 L 256 332" fill="none" stroke-linecap="round"/>
|
|
119
|
+
|
|
120
|
+
<!-- Root node -->
|
|
121
|
+
<circle cx="256" cy="332" r="7"/>
|
|
122
|
+
|
|
123
|
+
<!-- Left branch (shorter) -->
|
|
124
|
+
<path d="M 256 332 L 236 360" fill="none"
|
|
125
|
+
stroke-linecap="round" stroke-linejoin="round"/>
|
|
126
|
+
<path d="M 236 360 L 236 395" fill="none"
|
|
127
|
+
stroke-linecap="round"/>
|
|
128
|
+
|
|
129
|
+
<!-- Center branch (longest) -->
|
|
130
|
+
<path d="M 256 332 L 256 422" fill="none"
|
|
131
|
+
stroke-linecap="round"/>
|
|
132
|
+
|
|
133
|
+
<!-- Right branch (medium) -->
|
|
134
|
+
<path d="M 256 332 L 276 360" fill="none"
|
|
135
|
+
stroke-linecap="round" stroke-linejoin="round"/>
|
|
136
|
+
<path d="M 276 360 L 276 410" fill="none"
|
|
137
|
+
stroke-linecap="round"/>
|
|
138
|
+
|
|
139
|
+
<!-- Leaf nodes -->
|
|
140
|
+
<circle cx="236" cy="395" r="8"/>
|
|
141
|
+
<circle cx="256" cy="422" r="8"/>
|
|
142
|
+
<circle cx="276" cy="410" r="8"/>
|
|
143
|
+
</g>
|
|
144
|
+
</svg>
|
|
145
|
+
|
|
@@ -1,7 +1,9 @@
|
|
|
1
1
|
from __future__ import annotations
|
|
2
2
|
|
|
3
3
|
import sys
|
|
4
|
+
from pathlib import Path
|
|
4
5
|
from PySide6.QtWidgets import QApplication
|
|
6
|
+
from PySide6.QtGui import QIcon
|
|
5
7
|
|
|
6
8
|
from .settings import APP_NAME, APP_ORG, get_settings
|
|
7
9
|
from .main_window import MainWindow
|
|
@@ -13,6 +15,11 @@ def main():
|
|
|
13
15
|
app = QApplication(sys.argv)
|
|
14
16
|
app.setApplicationName(APP_NAME)
|
|
15
17
|
app.setOrganizationName(APP_ORG)
|
|
18
|
+
# Icon
|
|
19
|
+
BASE_DIR = Path(__file__).resolve().parent
|
|
20
|
+
ICON_PATH = BASE_DIR / "icons" / "bouquin-light.svg"
|
|
21
|
+
icon = QIcon(str(ICON_PATH))
|
|
22
|
+
app.setWindowIcon(icon)
|
|
16
23
|
|
|
17
24
|
s = get_settings()
|
|
18
25
|
theme_str = s.value("ui/theme", "system")
|
|
@@ -210,7 +210,7 @@ class MainWindow(QMainWindow):
|
|
|
210
210
|
act_history.triggered.connect(self._open_history)
|
|
211
211
|
file_menu.addAction(act_history)
|
|
212
212
|
act_settings = QAction(strings._("main_window_settings_accessible_flag"), self)
|
|
213
|
-
act_settings.setShortcut("Ctrl+G")
|
|
213
|
+
act_settings.setShortcut("Ctrl+Shift+G")
|
|
214
214
|
act_settings.triggered.connect(self._open_settings)
|
|
215
215
|
file_menu.addAction(act_settings)
|
|
216
216
|
act_export = QAction(strings._("export_accessible_flag"), self)
|
|
@@ -6,6 +6,7 @@ from pathlib import Path
|
|
|
6
6
|
|
|
7
7
|
from PySide6.QtGui import (
|
|
8
8
|
QFont,
|
|
9
|
+
QFontDatabase,
|
|
9
10
|
QFontMetrics,
|
|
10
11
|
QImage,
|
|
11
12
|
QTextCharFormat,
|
|
@@ -41,8 +42,12 @@ class MarkdownEditor(QTextEdit):
|
|
|
41
42
|
self.setAcceptRichText(False)
|
|
42
43
|
|
|
43
44
|
# Normal text
|
|
44
|
-
|
|
45
|
-
|
|
45
|
+
base_dir = Path(__file__).resolve().parent
|
|
46
|
+
font_path = base_dir / "fonts" / "NotoSansSymbols2-Regular.ttf"
|
|
47
|
+
font_id = QFontDatabase.addApplicationFont(str(font_path))
|
|
48
|
+
families = QFontDatabase.applicationFontFamilies(font_id)
|
|
49
|
+
font_family = families[0]
|
|
50
|
+
self.qfont = QFont(font_family, 11)
|
|
46
51
|
self.setFont(self.qfont)
|
|
47
52
|
|
|
48
53
|
self._apply_line_spacing() # 1.25× initial spacing
|
|
@@ -98,20 +98,12 @@ class MarkdownHighlighter(QSyntaxHighlighter):
|
|
|
98
98
|
self.link_format.setFontUnderline(True)
|
|
99
99
|
self.link_format.setAnchor(True)
|
|
100
100
|
|
|
101
|
-
#
|
|
102
|
-
doc = self.document()
|
|
103
|
-
base_font = doc.defaultFont() if doc is not None else QGuiApplication.font()
|
|
104
|
-
base_size = base_font.pointSizeF()
|
|
105
|
-
if base_size <= 0:
|
|
106
|
-
base_size = 10.0 # fallback
|
|
107
|
-
# Checkboxes: make them a bit bigger so they stand out
|
|
101
|
+
# Checkboxes
|
|
108
102
|
self.checkbox_format = QTextCharFormat()
|
|
109
|
-
self.checkbox_format.setFontPointSize(base_size * 1.3)
|
|
110
103
|
self.checkbox_format.setVerticalAlignment(QTextCharFormat.AlignMiddle)
|
|
111
104
|
|
|
112
105
|
# Bullets
|
|
113
106
|
self.bullet_format = QTextCharFormat()
|
|
114
|
-
self.bullet_format.setFontPointSize(base_size * 1.2)
|
|
115
107
|
|
|
116
108
|
# Markdown syntax (the markers themselves) - make invisible
|
|
117
109
|
self.syntax_format = QTextCharFormat()
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
[tool.poetry]
|
|
2
2
|
name = "bouquin"
|
|
3
|
-
version = "0.4.
|
|
3
|
+
version = "0.4.3"
|
|
4
4
|
description = "Bouquin is a simple, opinionated notebook application written in Python, PyQt and SQLCipher."
|
|
5
5
|
authors = ["Miguel Jacq <mig@mig5.net>"]
|
|
6
6
|
readme = "README.md"
|
|
@@ -31,6 +31,9 @@ pyproject-appimage = "^4.2"
|
|
|
31
31
|
[tool.pyproject-appimage]
|
|
32
32
|
script = "bouquin"
|
|
33
33
|
output = "Bouquin.AppImage"
|
|
34
|
+
icon = "bouquin/icons/bouquin-light.svg"
|
|
35
|
+
rename-icon = "bouquin.png"
|
|
36
|
+
desktop-entry = "bouquin.desktop"
|
|
34
37
|
|
|
35
38
|
[tool.vulture]
|
|
36
39
|
paths = ["bouquin", "vulture_ignorelist.py"]
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|