Skip to content

Commit

Permalink
small UI changes
Browse files Browse the repository at this point in the history
  • Loading branch information
Yannis4444 authored and Yannis4444 committed Sep 12, 2021
1 parent 9e691dc commit 4d93c33
Show file tree
Hide file tree
Showing 7 changed files with 33 additions and 4 deletions.
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -104,6 +104,7 @@ pip install wxpython
pip install appdirs
pip install Flask-BasicAuth
pip install netifaces
pip install pillow
```

To start the server just run `python main.py`.
Expand Down
2 changes: 1 addition & 1 deletion orangeshare/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
A small python server that accepts requests from an apple shortcut to allow sharing all sorts of media from iOS with any desktop OS
"""

__version__ = "1.3.2"
__version__ = "1.4.0"
__author__ = 'Yannis Vierkoetter'

import logging
Expand Down
27 changes: 27 additions & 0 deletions orangeshare/ui/static/css/main.css
Original file line number Diff line number Diff line change
Expand Up @@ -105,6 +105,33 @@ td{
border: 1px solid var(--border);
}

.content .back {
position: absolute;
font-size: 20px;
text-decoration: none;
text-transform: uppercase;
}

.content .back:hover,
.content .back:focus {
color: #fff;
}

.content .back:before {
content: '';
border: solid var(--text);
border-width: 0 2px 2px 0;
display: inline-block;
padding: 4px;
transform: rotate(135deg);
-webkit-transform: rotate(135deg) translateY(3px);
}

.content .back:hover:before,
.content .back:focus:before {
border-color: #fff;
}

.content h1,
.content h2 {
text-align: center;
Expand Down
2 changes: 1 addition & 1 deletion orangeshare/ui/templates/devices.html
Original file line number Diff line number Diff line change
Expand Up @@ -21,8 +21,8 @@ <h1><span class="logo"></span><label>Orange Share</label></h1>
</div>

<div class="content">
<a class="back" href="/">back</a>
<h1 class="section">Connected Devices</h1>
<!-- TODO: info, link to shortcut, link to option to change ip-->
<p>
Devices that are to be used with Orange Share have to be connected first.
To establish the connection, the <a href="/shortcuts#ConnectionManager"><b>Connection Manager Shortcut</b></a> is needed.
Expand Down
1 change: 1 addition & 0 deletions orangeshare/ui/templates/settings.html
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@ <h1><span class="logo"></span><label>Orange Share</label></h1>
</div>

<div class="content">
<a class="back" href="/">back</a>
<h1>Settings</h1>
<h2 class="section" style="color: var(--text)">Settings are not currently available in the UI. You can find a configuration file in</h2>
<h2 class="section" style="font-weight: bold">{{conf_file}}</h2>
Expand Down
2 changes: 1 addition & 1 deletion orangeshare/ui/templates/shortcuts.html
Original file line number Diff line number Diff line change
Expand Up @@ -21,8 +21,8 @@ <h1><span class="logo"></span><label>Orange Share</label></h1>
</div>

<div class="content">
<a class="back" href="/">back</a>
<h1 class="section">Shortcuts</h1>
<!-- TODO: info, how to, untrusted shortcuts-->
<p>
Orange Share uses several <a href="https://support.apple.com/guide/shortcuts/welcome/ios">shortcuts</a> for different parts of its functionality.
These shortcuts have to be installed on the device from which content shall be shared.
Expand Down
2 changes: 1 addition & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@

setup(
name='orangeshare',
version='1.3.2',
version='1.4.0',
description='A small python server that accepts requests from an apple shortcut to allow sharing all sorts of media from iOS with any desktop OS',
long_description=long_description,
long_description_content_type='text/markdown',
Expand Down

0 comments on commit 4d93c33

Please sign in to comment.