Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add Geany-Themes page with theme preview
The themes in the preview list are loaded from the Geany-Themes repository on Github on the fly (but cached for one hour).
- Loading branch information
Showing
5 changed files
with
108 additions
and
6 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
## Geany Themes | ||
|
||
Geany-Themes is a collection of color schemes for Geany, either written originally by the Geany community or ported from color schemes for other editors. | ||
These schemes are compatible with Geany 1.22 and greater. | ||
|
||
To use one the themes below, download the configuration file and save it to the folder `colorschemes` in your Geany configuration directory (usually `~/.config/geany/colorschemes/`). | ||
|
||
For more information and detailed configuration instructions, see https://github.com/geany/geany-themes. | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,63 @@ | ||
{% extends "pages/richtextpage.html" %} | ||
|
||
{% load mezzanine_tags pages_tags static %} | ||
|
||
{% block extra_css %} | ||
<link rel="stylesheet" href="{% static "mezzanine/css/magnific-popup.css" %}"> | ||
<style> | ||
.img-thumbnail { | ||
cursor: zoom-in; | ||
} | ||
</style> | ||
{% endblock %} | ||
|
||
{% block richtext_content %} | ||
{{ block.super }} | ||
|
||
<h3>Available Themes</h3> | ||
|
||
<div class="row"> | ||
|
||
{% for theme in theme_index.values|dictsort:"name" %} | ||
<div class="col-md-4"> | ||
<div class="panel panel-default"> | ||
<div class="panel-heading"> | ||
<strong>{{ theme.name }}</strong> | ||
<span class="pull-right"><a href="{{ theme.colorscheme }}">Download</a></span> | ||
</div> | ||
<div class="panel-body gallery"> | ||
<a href="{{ theme.screenshot }}" title="{{ theme.name }} - {{ theme.description }}"> | ||
<img | ||
src="data:image/png;base64,{{ theme.thumbnail }}" | ||
class="img-responsive img-thumbnail center-block" | ||
alt="Thumbnail of colorscheme {{ theme.name }}" /> | ||
</a> | ||
<div class="text-center">{{ theme.description }}</div> | ||
</div> | ||
</div> | ||
</div> | ||
|
||
{% if forloop.counter|divisibleby:3 %} | ||
</div> | ||
<div class="row"> | ||
{% endif %} | ||
{% endfor %} | ||
</div> | ||
|
||
{% endblock %} | ||
|
||
{% block extra_js %} | ||
{{ block.super }} | ||
<script src="{% static "mezzanine/js/magnific-popup.js" %}"></script> | ||
<script> | ||
$(document).ready(function() { | ||
$('.gallery').magnificPopup({ | ||
delegate: 'a', | ||
type: 'image', | ||
gallery: { | ||
enabled: true, | ||
} | ||
}); | ||
}); | ||
</script> | ||
{% endblock %} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters