Skip to content
This repository was archived by the owner on Jan 11, 2023. It is now read-only.
Open
Show file tree
Hide file tree
Changes from 2 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -146,6 +146,7 @@ vala_precompile(UI ${UI_NAME}
src/FavIconCache.vala
src/FeedReader.vala
src/LoginInterface.vala
src/ArticleTheme.vala
src/dbUI.vala
src/UtilsUI.vala
src/Widgets/AddPopover.vala
Expand Down Expand Up @@ -310,3 +311,4 @@ install (FILES ${CMAKE_CURRENT_SOURCE_DIR}/data/org.gnome.FeedReader.Daemon.serv
install (DIRECTORY ${CMAKE_CURRENT_SOURCE_DIR}/data/application-icons/hicolor DESTINATION ${CMAKE_INSTALL_PREFIX}/share/icons)
install (CODE "execute_process (COMMAND gtk-update-icon-cache -t ${CMAKE_INSTALL_PREFIX}/share/icons/hicolor)")
install (DIRECTORY ${CMAKE_CURRENT_SOURCE_DIR}/data/GrabberConfig DESTINATION ${PKGDATADIR})
install (DIRECTORY ${CMAKE_CURRENT_SOURCE_DIR}/data/ArticleView DESTINATION ${PKGDATADIR})
27 changes: 0 additions & 27 deletions data/ArticleView/article.html

This file was deleted.

33 changes: 33 additions & 0 deletions data/ArticleView/default/article.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
<!DOCTYPE>
<html>
<head>
<title>FeedReader Article View</title>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<style>
$CSS
</style>
</head>

<body style="font-size:$FONTSIZEpt;font-family:$FONTFAMILY;">

<div id="feedreader-container">
<article>
<header class="unselectable">
<div id="source" style="font-size:$SMALLSIZEpt;">$FEED</div>
<div id="title" target="_blank" style="font-size:$LARGESIZEpt;"><a href="$URL">$TITLE</a></div>
<div id="author" style="font-size:$SMALLSIZEpt;">
$AUTHOR
</div>
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Would it be make sense to use more semantic tags like <h2> instead of <div>?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The theme isn't ready, it's just an example of how things works 👍
Once the Vala code is ready, i will work on two/three themes that will replace the default ones

Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Oh cool, that makes sense :)

</header>

<div id="content" class="$UNSELECTABLE">
$HTML
</div>

</article>
</div>


</body>
</html>
65 changes: 65 additions & 0 deletions data/ArticleView/default/style.css
Original file line number Diff line number Diff line change
@@ -0,0 +1,65 @@
html, body {
margin: 0;
padding: 0;
width: auto;
}
a {
text-decoration: none;
color: #000;
}


.unselectable {
-webkit-user-select: none;
-webkit-touch-callout: none;
-webkit-user-drag: none;
user-select: none;
}


a:hover {
opacity:0.7;
}

body{
font-family: Arial, Helvetica, sans-serif;
}
img {
width: 100%;
}

p {
text-align: justify;
}

#feedreader-container {
background-color: #FFFFFF;
margin: 10px;
padding: 20px;
}
#feedreader-container article header {
font-family: LyonText,Georgia,serif;
margin-bottom: 50px;
}

#feedreader-container article header #title {
font-size: 3em;
font-weight: 400;
line-height: 1.3em;
margin-bottom: 5px;
margin-top: 0;
}

#feedreader-container article header #author {
font-size: 1.1em;
font-weight: 400;
line-height: 0.8em;
margin-bottom: 5px;
margin-top: 0;
color: #AFAFAF;
}


#feedreader-container article #content {
margin: 5px;
}
4 changes: 4 additions & 0 deletions data/ArticleView/default/theme.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
{
"name": "Default",
"author": "Bilal Elmoussaoui"
}
33 changes: 33 additions & 0 deletions data/ArticleView/midnight/article.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
<!DOCTYPE>
<html>
<head>
<title>FeedReader Article View</title>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<style>
$CSS
</style>
</head>

<body style="font-size:$FONTSIZEpt;font-family:$FONTFAMILY;">

<div id="feedreader-container">
<article>
<header class="unselectable">
<div id="source" style="font-size:$SMALLSIZEpt;">$FEED</div>
<div id="title" target="_blank" style="font-size:$LARGESIZEpt;"><a href="$URL">$TITLE</a></div>
<div id="author" style="font-size:$SMALLSIZEpt;">
$AUTHOR
</div>
</header>

<div id="content" class="$UNSELECTABLE">
$HTML
</div>

</article>
</div>


</body>
</html>
68 changes: 68 additions & 0 deletions data/ArticleView/midnight/style.css
Original file line number Diff line number Diff line change
@@ -0,0 +1,68 @@
html, body {
margin: 0;
padding: 0;
width: auto;
}
a, body {
color: #ECECEC;

}

.unselectable {
-webkit-user-select: none;
-webkit-touch-callout: none;
-webkit-user-drag: none;
user-select: none;
}

a {
text-decoration: none;
}

a:hover {
opacity:0.7;
}

body{
font-family: Arial, Helvetica, sans-serif;
background-color: #2E3440;
}

img {
width: 100%;
}

p {
text-align: justify;
}

#feedreader-container {
margin: 10px;
padding: 20px;
}
#feedreader-container article header {
font-family: LyonText,Georgia,serif;
margin-bottom: 50px;
}

#feedreader-container article header #title {
font-size: 3em;
font-weight: 400;
line-height: 1.3em;
margin-bottom: 5px;
margin-top: 0;
}

#feedreader-container article header #author {
font-size: 1.1em;
font-weight: 400;
line-height: 0.8em;
margin-bottom: 5px;
margin-top: 0;
color: #AFAFAF;
}


#feedreader-container article #content {
margin: 5px;
}
4 changes: 4 additions & 0 deletions data/ArticleView/midnight/theme.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
{
"name": "Midnight",
"author": "Bilal Elmoussaoui"
}
Loading