Skip to content

Commit d8656a5

Browse files
committed
Add new skin
1 parent 2888458 commit d8656a5

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+
&#32;&#47;&nbsp;<a class="rssguard-menc" 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;&#47;&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: 238 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,238 @@
1+
<!DOCTYPE html>
2+
<html lang="en">
3+
<!--
4+
___________________________
5+
< I'm an expert in my field. >
6+
---------------------------
7+
\ ^__^
8+
\ (oo)\_______
9+
(__)\ )\/\
10+
||----w |
11+
|| ||
12+
-->
13+
<head>
14+
<style>
15+
:root {
16+
--base-unit: 10px;
17+
--brad-unit: .3em;
18+
/* Qt5 fusion border grey */
19+
--grey1: #B8B8B8;
20+
21+
/* Some other 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+
}
89+
a:hover {
90+
text-decoration: none;
91+
}
92+
cite {
93+
font-style: italic !important;
94+
font-weight: bold !important;
95+
}
96+
figure > img {
97+
display: block;
98+
}
99+
figcaption {
100+
font-size: .8em !important;
101+
}
102+
blockquote {
103+
color: var(--grey10);
104+
border-left: 4px solid var(--grey2);
105+
margin-left: 0;
106+
padding: 0 var(--base-unit);
107+
}
108+
pre,
109+
code {
110+
background: var(--grey20);
111+
}
112+
pre {
113+
--horiz: 13px;
114+
115+
border-radius: var(--brad-unit);
116+
margin 0;
117+
overflow-x: auto;
118+
padding: 7px var(--horiz);
119+
white-space: pre !important;
120+
width: calc(100wv - calc(var(--horiz) * 2)) !important;
121+
}
122+
code {
123+
border-radius: var(--brad-unit);
124+
color: var(--grey10);
125+
padding: 0 .25em;
126+
word-break: break-word;
127+
}
128+
pre code {
129+
display: block;
130+
padding: 0;
131+
tab-size: 4;
132+
}
133+
table {
134+
border-collapse: collapse;
135+
width: 100%;
136+
}
137+
table,
138+
th,
139+
td {
140+
border: 1px solid var(--grey1);
141+
}
142+
img {
143+
max-height: 100%;
144+
/*
145+
* There are few cases in horizontal layout when
146+
* max-width: 500px; looks better with hi-res images
147+
*/
148+
max-width: 100%;
149+
}
150+
details > summary {
151+
border-radius: var(--brad-unit);
152+
cursor: pointer;
153+
}
154+
details > summary:hover {
155+
background: var(--grey20);
156+
}
157+
details[open] > summary {
158+
background: var(--grey20);
159+
}
160+
details > summary:focus {
161+
box-shadow: none;
162+
outline: none;
163+
}
164+
hr {
165+
background: var(--grey2);
166+
border: none;
167+
display: block;
168+
height: 2px;
169+
margin: var(--base-unit) 0;
170+
}
171+
iframe {
172+
max-width: 100%;
173+
max-height: auto;
174+
}
175+
.rssguard-mwrapper {
176+
padding: var(--base-unit) !important;
177+
}
178+
.rssguard-mhead .rssguard-msmall,
179+
.rssguard-mhead .rssguard-mlinks {
180+
opacity: .8;
181+
}
182+
.rssguard-mhead h1 {
183+
margin: 0;
184+
}
185+
.rssguard-msmall {
186+
font-size: 0.9em;
187+
}
188+
.rssguard-mlinks a.rssguard-menc {
189+
word-break: break-word;
190+
}
191+
.rssguard-murl {
192+
visibility: hidden;
193+
}
194+
body:hover .rssguard-mwrapper .rssguard-murl {
195+
visibility: visible;
196+
}
197+
.rssguard-mbody {
198+
/*
199+
* For articles without html elements;
200+
* Not sure if I want to apply this to *all*;
201+
* otherwise apply only to links
202+
*/
203+
word-break: break-word;
204+
}
205+
</style>
206+
<style>
207+
html, body, div, span, applet, object, iframe,
208+
h1, h2, h3, h4, h5, h6, p, blockquote, pre,
209+
a, abbr, acronym, address, big, cite, code,
210+
del, dfn, em, img, ins, kbd, q, s, samp,
211+
small, strike, strong, sub, sup, tt, var,
212+
b, u, i, center,
213+
dl, dt, dd, ol, ul, li,
214+
fieldset, form, label, legend,
215+
table, caption, tbody, tfoot, thead, tr, th, td,
216+
article, aside, canvas, details, embed,
217+
figure, figcaption, footer, header, hgroup,
218+
menu, nav, output, ruby, section, summary,
219+
time, mark, audio, video {
220+
font: inherit;
221+
font-size: 100%;
222+
}
223+
html {
224+
height: 100vh;
225+
}
226+
body {
227+
height: 100vh;
228+
}
229+
</style>
230+
<meta name="viewport" content="width=device-width, initial-scale=1">
231+
<title>%1</title>
232+
</head>
233+
234+
<body>
235+
%2
236+
</body>
237+
238+
</html>

resources/skins/nudus/metadata.xml

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