Added the Appanoose theme

This commit is contained in:
Maurice Parker 2021-09-22 11:34:12 -05:00
parent d42784d099
commit 95579e015d
4 changed files with 622 additions and 0 deletions

View File

@ -629,6 +629,11 @@
51DC37072402153E0095D371 /* UpdateSelectionOperation.swift in Sources */ = {isa = PBXBuildFile; fileRef = 51DC37062402153E0095D371 /* UpdateSelectionOperation.swift */; };
51DC37092402F1470095D371 /* MasterFeedDataSourceOperation.swift in Sources */ = {isa = PBXBuildFile; fileRef = 51DC37082402F1470095D371 /* MasterFeedDataSourceOperation.swift */; };
51DC370B2405BC9A0095D371 /* PreloadedWebView.swift in Sources */ = {isa = PBXBuildFile; fileRef = 51DC370A2405BC9A0095D371 /* PreloadedWebView.swift */; };
51DEE81226FB9233006DAA56 /* Appanoose.nnwtheme in Resources */ = {isa = PBXBuildFile; fileRef = 51DEE81126FB9233006DAA56 /* Appanoose.nnwtheme */; };
51DEE81326FB9233006DAA56 /* Appanoose.nnwtheme in Resources */ = {isa = PBXBuildFile; fileRef = 51DEE81126FB9233006DAA56 /* Appanoose.nnwtheme */; };
51DEE81426FB9233006DAA56 /* Appanoose.nnwtheme in Resources */ = {isa = PBXBuildFile; fileRef = 51DEE81126FB9233006DAA56 /* Appanoose.nnwtheme */; };
51DEE81526FB9233006DAA56 /* Appanoose.nnwtheme in Resources */ = {isa = PBXBuildFile; fileRef = 51DEE81126FB9233006DAA56 /* Appanoose.nnwtheme */; };
51DEE81626FB9233006DAA56 /* Appanoose.nnwtheme in Resources */ = {isa = PBXBuildFile; fileRef = 51DEE81126FB9233006DAA56 /* Appanoose.nnwtheme */; };
51E0614525A5A28E00194066 /* Articles in Frameworks */ = {isa = PBXBuildFile; productRef = 51E0614425A5A28E00194066 /* Articles */; };
51E0614625A5A28E00194066 /* Articles in Embed Frameworks */ = {isa = PBXBuildFile; productRef = 51E0614425A5A28E00194066 /* Articles */; settings = {ATTRIBUTES = (CodeSignOnCopy, ); }; };
51E0614825A5A28E00194066 /* ArticlesDatabase in Frameworks */ = {isa = PBXBuildFile; productRef = 51E0614725A5A28E00194066 /* ArticlesDatabase */; };
@ -1888,6 +1893,7 @@
51DC37062402153E0095D371 /* UpdateSelectionOperation.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = UpdateSelectionOperation.swift; sourceTree = "<group>"; };
51DC37082402F1470095D371 /* MasterFeedDataSourceOperation.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = MasterFeedDataSourceOperation.swift; sourceTree = "<group>"; };
51DC370A2405BC9A0095D371 /* PreloadedWebView.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = PreloadedWebView.swift; sourceTree = "<group>"; };
51DEE81126FB9233006DAA56 /* Appanoose.nnwtheme */ = {isa = PBXFileReference; lastKnownFileType = wrapper; path = Appanoose.nnwtheme; sourceTree = "<group>"; };
51E36E70239D6610006F47A5 /* AddFeedSelectFolderTableViewCell.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = AddFeedSelectFolderTableViewCell.swift; sourceTree = "<group>"; };
51E36E8B239D6765006F47A5 /* AddFeedSelectFolderTableViewCell.xib */ = {isa = PBXFileReference; lastKnownFileType = file.xib; path = AddFeedSelectFolderTableViewCell.xib; sourceTree = "<group>"; };
51E3EB32229AB02C00645299 /* ErrorHandler.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = ErrorHandler.swift; sourceTree = "<group>"; };
@ -2631,6 +2637,7 @@
845479871FEB77C000AD8B59 /* TimelineKeyboardShortcuts.plist */,
5127B237222B4849006D641D /* DetailKeyboardShortcuts.plist */,
5137C2E326F3F52D009EFEDB /* Sepia.nnwtheme */,
51DEE81126FB9233006DAA56 /* Appanoose.nnwtheme */,
);
path = Resources;
sourceTree = "<group>";
@ -4426,6 +4433,7 @@
5177475D24B39AD500EB0F74 /* Dedication.rtf in Resources */,
51E4995E24A875F300B667CB /* newsfoot.js in Resources */,
517B2EE424B3E8FE001AC46C /* blank.html in Resources */,
51DEE81526FB9233006DAA56 /* Appanoose.nnwtheme in Resources */,
5177475C24B39AD500EB0F74 /* Credits.rtf in Resources */,
51D0214926ED617100FF2E0F /* core.css in Resources */,
51E4995D24A875F300B667CB /* main.js in Resources */,
@ -4440,6 +4448,7 @@
51E4996424A875F400B667CB /* stylesheet.css in Resources */,
5137C2E826F3F52D009EFEDB /* Sepia.nnwtheme in Resources */,
51E4997524A8784400B667CB /* DefaultFeeds.opml in Resources */,
51DEE81626FB9233006DAA56 /* Appanoose.nnwtheme in Resources */,
51C0516324A77DF800194D5E /* Assets.xcassets in Resources */,
51E4996524A875F400B667CB /* template.html in Resources */,
517B2EE924B3E8FE001AC46C /* main_multiplatform.js in Resources */,
@ -4514,6 +4523,7 @@
65ED406C235DEF6C0081F399 /* Credits.rtf in Resources */,
65ED406D235DEF6C0081F399 /* Inspector.storyboard in Resources */,
65ED406E235DEF6C0081F399 /* AddWebFeedSheet.xib in Resources */,
51DEE81326FB9233006DAA56 /* Appanoose.nnwtheme in Resources */,
B27EEBFA244D15F3000932E6 /* stylesheet.css in Resources */,
);
runOnlyForDeploymentPostprocessing = 0;
@ -4565,6 +4575,7 @@
51CE1C0923621EDA005548FC /* RefreshProgressView.xib in Resources */,
84C9FC9D2262A1A900D921D6 /* Assets.xcassets in Resources */,
514219582353C28900E07E2C /* main_ios.js in Resources */,
51DEE81426FB9233006DAA56 /* Appanoose.nnwtheme in Resources */,
51E36E8C239D6765006F47A5 /* AddFeedSelectFolderTableViewCell.xib in Resources */,
);
runOnlyForDeploymentPostprocessing = 0;
@ -4612,6 +4623,7 @@
5103A9982421643300410853 /* blank.html in Resources */,
515A516E243E7F950089E588 /* ExtensionPointDetail.xib in Resources */,
84BAE64921CEDAF20046DB56 /* CrashReporterWindow.xib in Resources */,
51DEE81226FB9233006DAA56 /* Appanoose.nnwtheme in Resources */,
84C9FC8E22629E8F00D921D6 /* Credits.rtf in Resources */,
84BBB12D20142A4700F054F5 /* Inspector.storyboard in Resources */,
848363022262A3BD00DA1D35 /* AddWebFeedSheet.xib in Resources */,

View File

@ -0,0 +1,16 @@
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
<key>Name</key>
<string>Starter</string>
<key>ThemeIdentifier</key>
<string>com.netnewswire.themes.starter</string>
<key>CreatorHomePage</key>
<string>http://netnewswire.com/</string>
<key>CreatorName</key>
<string>Ranchero Software</string>
<key>Version</key>
<integer>1</integer>
</dict>
</plist>

View File

@ -0,0 +1,538 @@
/* Shared iOS and macOS CSS rules. Platform specific rules are at the bottom of this file. */
body {
word-wrap: break-word;
max-width: 44em;
}
article {
margin-top: 12px;
}
a {
text-decoration: none;
}
a:hover {
text-decoration: underline;
}
.footerTable {
width: 100%;
}
.systemMessage {
position: absolute;
top: 45%;
left: 50%;
transform: translateX(-55%) translateY(-50%);
-webkit-user-select: none;
cursor: default;
}
:root {
--footer-table-border-color: rgba(0, 0, 0, 0.1);
--footer-color: rgba(0, 0, 0, 0.3);
--body-code-color: #666;
--system-message-color: #cbcbcb;
--attribution-color: dimgray;
--article-title-color: #333;
--article-date-color: rgba(0, 0, 0, 0.3);
--table-cell-border-color: lightgray;
}
@media(prefers-color-scheme: dark) {
:root {
--footer-color: rgba(94, 158, 244, 1);
--body-code-color: #b2b2b2;
--system-message-color: #5f5f5f;
--attribution-color: #b2b2b2;
--article-title-color: #e0e0e0;
--article-date-color: rgba(255, 255, 255, 0.5);
--table-cell-border-color: dimgray;
}
}
.nnwDate {
white-space: nowrap;
}
.nnwTime {
white-space: nowrap;
font-size: 66%;
}
.nnwDateTime {
line-height: 1.2;
color: var(--attribution-color);
}
body .header {
padding: 6px;
border: 1px solid var(--header-footer-border-color);
border-radius: 4px;
display: flex;
}
body .footer {
margin-top: 22px;
padding: 6px;
border: 1px solid var(--header-footer-border-color);
border-radius: 4px;
color: var(--body-code-color);
}
body .footer a:link, .footer a:visited {
color: var(--body-code-color);
}
body code, body pre {
color: var(--body-code-color);
}
body > .systemMessage {
color: var(--system-message-color);
}
.feedIcon {
border-radius: 4px;
}
.attribution {
line-height: 1.2;
margin-left: 4px;
margin-right: 4px;
display: inline-block;
vertical-align: middle;
text-align: left;
flex: 20 1 auto;
color: var(--attribution-color);
}
.feedLink {
color: var(--attribution-color);
}
.byline {
color: var(--attribution-color);
font-size: 66%;
}
body .byline a:link, .byline a:visited {
color: var(--attribution-color);
}
.rightAlign {
text-align: end;
}
.leftAlign {
text-align: start;
}
.articleTitle {
margin-top: 16px;
font-size: 1.2em;
font-weight: bold;
color: var(--article-title-color);
text-align: center;
}
.articleTitle a:link, .articleTitle a:visited {
color: var(--article-title-color);
}
.articleDateline {
color: var(--article-date-color);
}
.articleDateline a:link, .articleDateline a:visited {
color: var(--article-date-color);
}
.articleDatelineTitle a:link, .articleDatelineTitle a:visited {
color: var(--article-title-color);
}
.externalLink {
font-style: italic;
width: 100%;
}
.singleLine {
white-space: nowrap;
overflow: hidden;
text-overflow: ellipsis;
}
body .externalLink a:link, .externalLink a:visited {
color: var(--article-title-color);
}
.articleBody {
margin-top: 10px;
line-height: 1.6em;
}
h1 {
line-height: 1.15em;
font-weight: bold;
padding-bottom: 0;
margin-bottom: 5px;
}
h3 {
font-weight: bold;
margin-bottom: 3px;
}
pre {
max-width: 100%;
margin: 0;
overflow: auto;
overflow-y: hidden;
word-wrap: normal;
word-break: normal;
}
pre {
line-height: 1.4286em;
}
code, pre {
font-family: "SF Mono", Menlo, "Courier New", Courier, monospace;
font-size: 1em;
-webkit-hyphens: none;
}
pre code {
letter-spacing: -.027em;
font-size: 0.9375em;
}
.nnw-overflow {
overflow-x: auto;
}
.avatar {
vertical-align: middle;
border-radius: 4px;
height: 2em;
width: 2em;
min-width: 2em;
}
/*
Instead of the last-child bits, border-collapse: collapse
could have been used. However, then the inter-cell borders
overlap the table border, which looks bad.
*/
.nnw-overflow table {
margin-bottom: 1px;
border-spacing: 0;
border: 1px solid var(--secondary-accent-color);
font-size: inherit;
}
.nnw-overflow table table {
margin-bottom: 0;
border: none;
}
.nnw-overflow td, .nnw-overflow th {
-webkit-hyphens: none;
word-break: normal;
border: 1px solid var(--table-cell-border-color);
border-top: none;
border-left: none;
padding: 5px;
}
.nnw-overflow tr :matches(td, th):last-child {
border-right: none;
}
.nnw-overflow :matches(thead, tbody, tfoot):last-child > tr:last-child :matches(td, th) {
border-bottom: none;
}
.nnw-overflow td pre {
border: none;
padding: 0;
}
.nnw-overflow table[border="0"] {
border-width: 0;
}
img, figure, video, div, object {
max-width: 100%;
height: auto !important;
margin: 0 auto;
}
iframe {
max-width: 100%;
margin: 0 auto;
}
iframe.nnw-constrained {
max-height: 50vw;
}
figure {
margin-bottom: 1em;
margin-top: 1em;
}
figcaption {
font-size: 14px;
line-height: 1.3em;
}
sup {
vertical-align: top;
position: relative;
bottom: 0.2rem;
}
sub {
vertical-align: bottom;
position: relative;
top: 0.2rem;
}
hr {
border: 1.5px solid var(--table-cell-border-color);
}
.iframeWrap {
position: relative;
display: block;
padding-top: 56.25%;
}
.iframeWrap iframe {
position: absolute;
top: 0;
left: 0;
height: 100% !important;
width: 100% !important;
}
blockquote {
margin-inline-start: 0;
margin-inline-end: 0;
padding-inline-start: 15px;
border-inline-start: 3px solid var(--block-quote-border-color);
}
/* Feed Specific */
.feedbin--article-wrap {
border-top: 1px solid var(--footer-table-border-color);
}
/* Twitter */
.twitterAvatar {
vertical-align: middle;
border-radius: 4px;
height: 1.7em;
width: 1.7em;
}
.twitterUsername {
line-height: 1.2;
margin-left: 4px;
display: inline-block;
vertical-align: middle;
}
.twitterScreenName {
font-size: 66%;
}
.twitterTimestamp {
font-size: 66%;
}
/* Newsfoot theme for light mode (default) */
.newsfoot-footnote-popover {
background: #ccc;
box-shadow: 0 2px 4px rgba(0, 0, 0, 0.5), 0 3px 6px rgba(0, 0, 0, 0.25);
color: black;
padding: 1px;
}
.newsfoot-footnote-popover-arrow {
background: #fafafa;
border: 1px solid #ccc;
}
.newsfoot-footnote-popover-inner {
background: #fafafa;
}
body a.footnote,
body a.footnote:visited,
.newsfoot-footnote-popover + a.footnote:hover {
background: #aaa;
color: white;
transition: background-color 200ms ease-out;
}
a.footnote:hover,
.newsfoot-footnote-popover + a.footnote {
background: #666;
transition: background-color 200ms ease-out;
}
/* Newsfoot theme for dark mode */
@media screen and (prefers-color-scheme: dark) {
.newsfoot-footnote-popover {
background: #444;
color: rgb(224, 224, 224);
}
.newsfoot-footnote-popover-arrow {
background: #242424;
border: 1px solid #444;
}
.newsfoot-footnote-popover-inner {
background: #242424;
}
body a.footnote,
body a.footnote:visited,
.newsfoot-footnote-popover + a.footnote:hover {
background: #aaa;
color: white;
transition: background-color 200ms ease-out;
}
a.footnote:hover,
.newsfoot-footnote-popover + a.footnote {
background: #666;
transition: background-color 200ms ease-out;
}
}
/* iOS Specific */
@supports (-webkit-touch-callout: none) {
body {
margin-top: 3px;
margin-bottom: 20px;
margin-left: 20px;
margin-right: 20px;
word-break: break-word;
-webkit-hyphens: auto;
-webkit-text-size-adjust: none;
}
:root {
color-scheme: light dark;
font: -apple-system-body;
/* The font-size is replaced at runtime by the dynamic type size */
font-size: [[font-size]]px;
--primary-accent-color: #086AEE;
--secondary-accent-color: #086AEE;
--block-quote-border-color: rgba(8, 106, 238, 0.50);
--header-footer-border-color: rgba(8, 106, 238, 0.75);
--secondary-accent-color: #086AEE;
}
@media(prefers-color-scheme: dark) {
:root {
--primary-accent-color: #2D80F1;
--secondary-accent-color: #5E9EF4;
--block-quote-border-color: rgba(94, 158, 244, 0.50);
--header-footer-border-color: rgba(94, 158, 244, 0.75);
--footer-table-border-color: rgba(255, 255, 255, 0.2);
}
}
body a, body a:visited {
color: var(--secondary-accent-color);
}
.fontSize {
font: -apple-system-body;
font-size: [[font-size]]px;
}
pre {
border: 1px solid var(--secondary-accent-color);
padding: 5px;
}
.nnw-overflow table {
border: 1px solid var(--secondary-accent-color);
}
}
/* macOS Specific */
@supports not (-webkit-touch-callout: none) {
body {
margin-top: 20px;
margin-bottom: 20px;
margin-left: 48px;
margin-right: 48px;
font-family: -apple-system;
}
.smallText {
font-size: 14px;
}
.mediumText {
font-size: 16px;
}
.largeText {
font-size: 18px;
}
.xlargeText {
font-size: 20px;
}
.xxlargeText {
font-size: 22px;
}
:root {
color-scheme: light dark;
--accent-color: rgba(8, 106, 238, 1);
--block-quote-border-color: rgba(8, 106, 238, .50);
--header-footer-border-color: rgba(8, 106, 238, 0.75);
}
@media(prefers-color-scheme: dark) {
:root {
--accent-color: rgba(94, 158, 244, 1);
--block-quote-border-color: rgba(94, 158, 244, .50);
--header-footer-border-color: rgba(94, 158, 244, 0.75);
}
}
body a, body a:visited {
color: var(--accent-color);
}
pre {
border: 1px solid var(--accent-color);
padding: 10px;
}
.nnw-overflow table {
border: 1px solid var(--accent-color);
}
}

View File

@ -0,0 +1,56 @@
<script type="text/javascript">
document.addEventListener("DOMContentLoaded", function(event) {
const externalLink = "[[external_link_stripped]]";
if (externalLink == "") {
const footer = document.getElementById("nnwFooter");
footer.style.display = "none";
} else {
const feedLink = "[[feed_link]]";
if (feedLink.includes("www.reddit.com")) {
const knownDomains = ["i.redd.it", "i.imgur.com", "gfycat.com", "v.redd.it",
"redgifs.com", "www.reddit.com", "i.pining.com", "imgur.com"];
for (let i = 0; i < knownDomains.length; i++) {
if (externalLink.startsWith(knownDomains[i])) {
const footer = document.getElementById("nnwFooter");
footer.style.display = "none";
break;
}
}
}
}
})
</script>
<div class="fontSize [[text_size_class]]">
<div class="header">
<div>
<img class="avatar nnw-nozoom" id="nnwImageIcon" src="[[avatar_src]]" />
</div>
<div class="attribution singleLine">
<div class="singleLine">
<a class="feedlink" href="[[feed_link]]">[[feed_link_title]]</a>
</div>
<div class="byline singleLine">
[[byline]]
</div>
</div>
<div>
<a href="[[preferred_link]]" class="nnwDateTime">
<div class="nnwDate rightAlign">[[date_medium]]</div>
<div class="nnwTime rightAlign">[[time_short]]</div>
</a>
</div>
</div>
<div class="articleTitle"><a href="[[preferred_link]]">[[title]]</a></div>
<article>
<div id="bodyContainer" class="articleBody">[[body]]</div>
</article>
<div id="nnwFooter" class="footer">
<div class="externalLink singleLine">[[external_link_label]]
<a href="[[external_link]]">[[external_link_stripped]]</a>
</a>
</div>
</div>