Skip to content

Commit 9a7fe41

Browse files
committed
Add new theme
1 parent 2888458 commit 9a7fe41

File tree

8 files changed

+288
-0
lines changed

8 files changed

+288
-0
lines changed

resources/rssguard.qrc

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -78,6 +78,14 @@
7878
<file>skins/vergilius/metadata.xml</file>
7979
<file>skins/vergilius/theme.css</file>
8080

81+
<file>skins/nudus/html_adblocked.html</file>
82+
<file>skins/nudus/html_enclosure_every.html</file>
83+
<file>skins/nudus/html_enclosure_image.html</file>
84+
<file>skins/nudus/html_single_message.html</file>
85+
<file>skins/nudus/html_wrapper.html</file>
86+
<file>skins/nudus/metadata.xml</file>
87+
<file>skins/nudus/theme.css</file>
88+
8189
<file>initial_feeds/feeds-en.opml</file>
8290

8391
<file>desktop/com.github.rssguard.desktop</file>
Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
<div>
2+
<h4>%1</h4>
3+
<div>%2</div>
4+
</div>
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
/&nbsp;<a href="%1"><div style="display:none"><!-- cannot be removed -->%2</div><span style="text-transform: uppercase;">%3</span></a>
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
<a href="%1"><img src="%1" alt="%2" style="height: %3px;" /></a>
Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
<div dir="auto">
2+
<div class="rssguard-mwrapper">
3+
<section class="rssguard-mhead">
4+
<div style="float: right; margin: 10px;"><!--where should I put it?????-->%7</div>
5+
<span class="rssguard-msmall">%2</span>
6+
<h1>%1<span class="rssguard-mlinks">%6<span class="rssguard-murl">&nbsp;/&nbsp;<a href="%3">URL</a></span></span></h1>
7+
<span class="rssguard-msmall">%5</span>
8+
</section>
9+
<hr />
10+
<div class="rssguard-mbody">
11+
%4
12+
</div>
13+
</div>
14+
</div>
Lines changed: 237 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,237 @@
1+
<?xml version="1.0" encoding="UTF-8" ?>
2+
<!DOCTYPE html>
3+
<html lang="en">
4+
<!--
5+
___________________________
6+
< I'm an expert in my field. >
7+
---------------------------
8+
\ ^__^
9+
\ (oo)\_______
10+
(__)\ )\/\
11+
||----w |
12+
|| ||
13+
-->
14+
<head>
15+
<style>
16+
:root {
17+
--base-unit: 10px;
18+
/* fusion border grey */
19+
--grey1: #B8B8B8;
20+
21+
/* some grey */
22+
--grey2: #CFCFCF;
23+
--grey10: #343434;
24+
--grey20: #F1F1F1;
25+
}
26+
body, h1, h2, h3, h4, h5, h6,
27+
p, blockquote, pre, hr,
28+
dl, dd, ol, ul, figure {
29+
margin: 0;
30+
padding: 0;
31+
}
32+
h1, h2, h3, h4, h5, h6,
33+
p, blockquote, pre,
34+
ul, ol, dl, figure {
35+
margin-bottom: var(--base-unit);
36+
}
37+
body {
38+
cursor: default;
39+
font-kerning: normal;
40+
-webkit-text-size-adjust: 100%;
41+
}
42+
pre,
43+
code {
44+
cursor: text;
45+
}
46+
h1, h2, h3, h4, h5, h6 {
47+
font-weight: 600 !important;
48+
}
49+
h1 { font-size: 1.25em !important; }
50+
h2 { font-size: 1.20em !important; }
51+
h3 { font-size: 1.15em !important; }
52+
h4 { font-size: 1.1em !important; }
53+
h5 { font-size: 1em !important; }
54+
h6 { font-size: .95em !important; }
55+
b {
56+
font-weight: bold !important;
57+
}
58+
i {
59+
font-style: italic !important;
60+
}
61+
strong {
62+
font-weight: 800 !important;
63+
}
64+
em {
65+
font-style: oblique !important;
66+
}
67+
mark {
68+
background: #FFECCC;
69+
}
70+
sub,
71+
sup {
72+
font-size: .8em !important;
73+
}
74+
small {
75+
font-size: .9em !important;
76+
}
77+
q {
78+
font-style: italic !important;
79+
}
80+
q::before {
81+
content: '“';
82+
}
83+
q::after {
84+
content: '”';
85+
}
86+
a {
87+
color: steelblue;
88+
word-break: break-word;
89+
}
90+
a:hover {
91+
text-decoration: none;
92+
}
93+
cite {
94+
font-style: italic !important;
95+
font-weight: bold !important;
96+
}
97+
figure > img {
98+
display: block;
99+
}
100+
figcaption {
101+
font-size: .8em !important;
102+
}
103+
blockquote {
104+
color: var(--grey10);
105+
border-left: 4px solid var(--grey2);
106+
margin-left: 0;
107+
padding: 0 var(--base-unit);
108+
}
109+
pre,
110+
code {
111+
background: var(--grey20);
112+
}
113+
code {
114+
border-radius: 5px;
115+
color: var(--grey10);
116+
padding: 0 .25em;
117+
word-break: break-word;
118+
}
119+
pre {
120+
--horiz: 13px;
121+
122+
border-radius: 3px;
123+
margin 0;
124+
overflow-x: auto;
125+
padding: 7px var(--horiz);
126+
white-space: pre !important;
127+
width: calc(100wv - calc(var(--horiz) * 2)) !important;
128+
}
129+
pre code {
130+
border: none;
131+
display: block;
132+
padding: 0;
133+
tab-size: 4;
134+
}
135+
table {
136+
border-collapse: collapse;
137+
width: 100%;
138+
}
139+
table,
140+
th,
141+
td {
142+
border: 1px solid var(--grey1);
143+
}
144+
img {
145+
max-height: 100%;
146+
/* there are few cases when in horiz layout max-width: 500px; is better with hi-res images*/
147+
max-width: 100%;
148+
}
149+
details > summary {
150+
border-radius: 5px;
151+
cursor: pointer;
152+
}
153+
details > summary:hover {
154+
background: var(--grey20);
155+
}
156+
details[open] > summary {
157+
background: var(--grey20);
158+
}
159+
details > summary:focus {
160+
box-shadow: none;
161+
outline: none;
162+
}
163+
hr {
164+
background: var(--grey2);
165+
border: none;
166+
display: block;
167+
height: 2px;
168+
margin: var(--base-unit) 0;
169+
}
170+
iframe {
171+
max-width: 100%;
172+
max-height: auto;
173+
}
174+
.rssguard-mwrapper {
175+
padding: var(--base-unit) !important;
176+
}
177+
.rssguard-mhead .rssguard-msmall,
178+
.rssguard-mhead .rssguard-mlinks {
179+
opacity: .8;
180+
}
181+
.rssguard-mhead h1 {
182+
margin: 0;
183+
}
184+
.rssguard-msmall {
185+
font-size: 0.9em;
186+
}
187+
.rssguard-mlinks a {
188+
word-break: break-word;
189+
}
190+
.rssguard-murl {
191+
visibility: hidden;
192+
}
193+
body:hover .rssguard-mwrapper .rssguard-murl {
194+
visibility: visible;
195+
}
196+
.rssguard-mbody {
197+
/*
198+
* for articles without html elements;
199+
* not sure if I want to add this
200+
*/
201+
/*word-break: break-word !important;*/
202+
}
203+
</style>
204+
205+
<style>
206+
html, body, div, span, applet, object, iframe,
207+
h1, h2, h3, h4, h5, h6, p, blockquote, pre,
208+
a, abbr, acronym, address, big, cite, code,
209+
del, dfn, em, img, ins, kbd, q, s, samp,
210+
small, strike, strong, sub, sup, tt, var,
211+
b, u, i, center,
212+
dl, dt, dd, ol, ul, li,
213+
fieldset, form, label, legend,
214+
table, caption, tbody, tfoot, thead, tr, th, td,
215+
article, aside, canvas, details, embed,
216+
figure, figcaption, footer, header, hgroup,
217+
menu, nav, output, ruby, section, summary,
218+
time, mark, audio, video {
219+
font: inherit;
220+
font-size: 100%;
221+
}
222+
223+
html {
224+
height: 100vh;
225+
}
226+
227+
body {
228+
height: 100vh;
229+
}
230+
</style>
231+
<meta name="viewport" content="width=device-width, initial-scale=1">
232+
<title>%1</title>
233+
</head>
234+
<body>
235+
%2
236+
</body>
237+
</html>

resources/skins/nudus/metadata.xml

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
<?xml version="1.0" encoding="UTF-8" ?>
2+
<skin version="0.01">
3+
<author>
4+
<name>anonymous</name>
5+
<email>anonymous</email>
6+
</author>
7+
<palette>
8+
<color key="1">#4861F0</color>
9+
<color key="2">#F04861</color>
10+
<color key="3">#61F048</color>
11+
</palette>
12+
</skin>

resources/skins/nudus/theme.css

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
QTextEdit {
2+
selection-background-color: #4861f0;
3+
}
4+
5+
QStatusBar::item {
6+
border: none;
7+
}
8+
9+
QSplitter::handle {
10+
background: rgba(117, 117, 117, 0.5);
11+
}

0 commit comments

Comments
 (0)