Compare commits

...

3 Commits

Author SHA1 Message Date
aghArdeshir 96b8f3ccef invert more pictures and iprove dark theme 2023-08-13 18:09:34 +02:00
aghArdeshir 9b6e7bd011 improve styling for dark theme 2023-08-13 18:09:20 +02:00
aghArdeshir 4bd3ad884f add themechanger along with dark theme 2023-08-13 18:09:06 +02:00
16 changed files with 246 additions and 16 deletions

View File

@ -590,11 +590,12 @@ for header in fileStruct:
# but the basic fundamental organizing unit WRT content is still the # but the basic fundamental organizing unit WRT content is still the
# chapter. # chapter.
githubedit = '' githubedit = ''
themechanger = '<span style="float:right;padding: 0 5px 5px 5px;position:relative;bottom:-5px;"><button class="theme-changer" onclick="changetheme()" title="Change Theme"></button></span>'
if level > 0: if level > 0:
if 'include' in header: if 'include' in header:
srcFile = open('include/' + header['include']) srcFile = open('include/' + header['include'])
githubedit = '<span style="float:right;"><a title="Edit in GitHub" href="' + global_githuburl + header['include'] + '"><img src="/images/github.png" alt="Edit in GitHub"/></a></span>' githubedit = '<span style="float:right;padding:5px;"><a class="github-link" title="Edit in GitHub" href="' + global_githuburl + header['include'] + '"></a></span>'
content = srcFile.read() content = srcFile.read()
srcFile.close() srcFile.close()
@ -660,6 +661,7 @@ for header in fileStruct:
page = page.replace('{% tree %}', sidebar) page = page.replace('{% tree %}', sidebar)
page = page.replace('{% prevnext %}', prevnext) page = page.replace('{% prevnext %}', prevnext)
page = page.replace('{% githubedit %}', githubedit) page = page.replace('{% githubedit %}', githubedit)
page = page.replace('{% themechanger %}', themechanger)
page = page.replace('{% breadcrumbs %}', breadcrumbs) page = page.replace('{% breadcrumbs %}', breadcrumbs)
page = page.replace('{{ content }}', content + more) page = page.replace('{{ content }}', content + more)
@ -685,6 +687,7 @@ page = page.replace('{% tree %}', sidebar)
page = page.replace('{{ content }}', toc) page = page.replace('{{ content }}', toc)
page = page.replace('{% prevnext %}', '') page = page.replace('{% prevnext %}', '')
page = page.replace('{% githubedit %}', '') page = page.replace('{% githubedit %}', '')
page = page.replace('{% themechanger %}', themechanger)
page = page.replace('{% breadcrumbs %}', '') page = page.replace('{% breadcrumbs %}', '')
os.mkdir(global_site_dir + 'toc', 0o775) os.mkdir(global_site_dir + 'toc', 0o775)

View File

@ -63,8 +63,8 @@ channel strip.
<p> <p>
The color of the processor will reflect this pre/post position (red for The color of the processor will reflect this pre/post position (red for
<span style="color:darkred;">Pre</span>, green for <span <span class="for-red">Pre</span>, green for <span
style="color:darkgreen;">Post</span>). Dragging and dropping the send inside class="for-green">Post</span>). Dragging and dropping the send inside
the processor box before or after the Fader processor changes the type of the processor box before or after the Fader processor changes the type of
fader accordingly. fader accordingly.
</p> </p>

View File

@ -331,7 +331,10 @@ The surface can be broken into 8 groups of controls:
</p> </p>
<figure> <figure>
<img alt="X-Touch Mini MC mode layout" src="/images/xtouch-mini-mcp.png"> <img
alt="X-Touch Mini MC mode layout"
src="/images/xtouch-mini-mcp.png"
class="invert-in-dark">
<figcaption> <figcaption>
X-Touch Mini MC mode layout X-Touch Mini MC mode layout
</figcaption> </figcaption>

View File

@ -11,7 +11,11 @@
</p> </p>
<figure> <figure>
<img width="300px" src="/images/aux_routing.png" alt="Aux signal routing"> <img
width="300px"
src="/images/aux_routing.png"
alt="Aux signal routing"
class="invert-in-dark">
<figcaption> <figcaption>
Aux signal routing Aux signal routing
</figcaption> </figcaption>
@ -24,7 +28,11 @@
</p> </p>
<figure> <figure>
<img width="300px" src="/images/subgroup_routes.png" alt="sub group signal routing"> <img
width="300px"
src="/images/subgroup_routes.png"
alt="sub group signal routing"
class="invert-in-dark">
<figcaption> <figcaption>
Sub group signal routing Sub group signal routing
</figcaption> </figcaption>

View File

@ -5,7 +5,11 @@
</p> </p>
<figure> <figure>
<img style="width:75%;" src="/images/countourdesign-shuttle.svg" alt="ContourDesign ShuttlePRO v2 and ShuttleXpress"> <img
style="width:75%;"
src="/images/countourdesign-shuttle.svg"
alt="ContourDesign ShuttlePRO v2 and ShuttleXpress"
class="invert-in-dark">
<figcaption> <figcaption>
Contour Design ShuttlePRO v1 (left), ShuttlePRO v2 (middle), and Contour Design ShuttlePRO v1 (left), ShuttlePRO v2 (middle), and
ShuttleXpress (right) ShuttleXpress (right)

View File

@ -5,7 +5,11 @@
</p> </p>
<figure> <figure>
<img style="width:75%;" src="/images/novation-launch-control-xl.svg" alt="Novation Launch Control XL"> <img
style="width:75%;"
src="/images/novation-launch-control-xl.svg"
alt="Novation Launch Control XL"
class="invert-in-dark">
<figcaption> <figcaption>
Novation Launch Control XL Novation Launch Control XL
</figcaption> </figcaption>

View File

@ -4,7 +4,11 @@
</p> </p>
<figure> <figure>
<img style="width:75%;" src="/images/steinberg-cc121.svg" alt="Steinberg CC121"> <img
style="width:75%;"
src="/images/steinberg-cc121.svg"
alt="Steinberg CC121"
class="invert-in-dark">
<figcaption> <figcaption>
Steinberg CC121 Steinberg CC121
</figcaption> </figcaption>

View File

@ -7,7 +7,11 @@
</p> </p>
<figure> <figure>
<img style="width:75%;" src="/images/tascam-us-2400-device.svg" alt="TASCAM US-2400"> <img
style="width:75%;"
src="/images/tascam-us-2400-device.svg"
alt="TASCAM US-2400"
class="invert-in-dark">
<figcaption> <figcaption>
TASCAM US-2400 TASCAM US-2400
</figcaption> </figcaption>

View File

@ -51,7 +51,10 @@
backend. While many of the concepts are true, the specifics may be different. backend. While many of the concepts are true, the specifics may be different.
</p> </p>
<figure> <figure>
<img src="/images/latency-chain.png" alt="Latency chain"> <img
src="/images/latency-chain.png"
alt="Latency chain"
class="invert-in-dark">
<figcaption> <figcaption>
Latency chain Latency chain
</figcaption> </figcaption>
@ -186,7 +189,10 @@
</p> </p>
<figure> <figure>
<img src="/images/jack-latency-excerpt.png" alt="Jack Latency Compensation"> <img
src="/images/jack-latency-excerpt.png"
alt="Jack Latency Compensation"
class="invert-in-dark">
<figcaption> <figcaption>
Jack Latency Compensation Jack Latency Compensation
</figcaption> </figcaption>

View File

@ -4,7 +4,10 @@
<h3>External Monitoring</h3> <h3>External Monitoring</h3>
<figure class="right"> <figure class="right">
<img src="/images/external-monitoring.png" alt="External monitoring"> <img
src="/images/external-monitoring.png"
alt="External monitoring"
class="invert-in-dark">
<figcaption class="center"> <figcaption class="center">
External monitoring External monitoring
</figcaption> </figcaption>
@ -20,7 +23,10 @@
<h3 class="clear">Audio driver Hardware Monitoring</h3> <h3 class="clear">Audio driver Hardware Monitoring</h3>
<figure class="right"> <figure class="right">
<img src="/images/jack-monitoring.png" alt="Hardware Monitoring"> <img
src="/images/jack-monitoring.png"
alt="Hardware Monitoring"
class="invert-in-dark">
<figcaption class="center"> <figcaption class="center">
Hardware Monitoring Hardware Monitoring
</figcaption> </figcaption>
@ -38,7 +44,10 @@
<h3 class="clear">Software Monitoring</h3> <h3 class="clear">Software Monitoring</h3>
<figure class="right"> <figure class="right">
<img src="/images/ardour-monitoring.png" alt="Software Monitoring"> <img
src="/images/ardour-monitoring.png"
alt="Software Monitoring"
class="invert-in-dark">
<figcaption class="center"> <figcaption class="center">
Software Monitoring Software Monitoring
</figcaption> </figcaption>

View File

@ -230,7 +230,10 @@
</p> </p>
<figure class="center"> <figure class="center">
<img src="/images/ltc-transport-alignment.png" alt="LTC frame alignment"> <img
src="/images/ltc-transport-alignment.png"
alt="LTC frame alignment"
class="invert-in-dark">
<figcaption> <figcaption>
LTC frame alignment for the 525/60 TV standard LTC frame alignment for the 525/60 TV standard
</figcaption> </figcaption>

View File

@ -60,6 +60,7 @@
{% breadcrumbs %} {% breadcrumbs %}
{% githubedit %} {% githubedit %}
{% themechanger %}
<h1 class="title">{{ page.title }}</h1> <h1 class="title">{{ page.title }}</h1>
@ -83,6 +84,31 @@
var e = document.getElementsByTagName('body')[0]; var e = document.getElementsByTagName('body')[0];
e.className += ' mac'; // class magic for Cmd vs. Ctrl keys. e.className += ' mac'; // class magic for Cmd vs. Ctrl keys.
} }
function changetheme () {
if (document.body.classList.contains('dark-theme')) {
document.body.classList.remove('dark-theme');
} else {
document.body.classList.add('dark-theme');
}
localStorage.setItem('dark-theme', document.body.classList.contains('dark-theme'));
}
if (localStorage.getItem('dark-theme') === 'true') {
changetheme();
}
// go to next page and previous page using arrow keys
window.addEventListener('keydown', e => {
if (e.target.tagName !== 'INPUT') {
if (e.key === 'ArrowRight') {
document.querySelector('.next a').click()
} else if (e.key === 'ArrowLeft') {
document.querySelector('.previous a').click()
}
}
})
</script> </script>
</body> </body>

View File

@ -280,3 +280,159 @@ p.subsection {
margin-top: 0px; margin-top: 0px;
} }
} }
.for-green {
color:darkgreen;
}
.for-red {
color:darkred;
}
.github-link {
background-image: url(/images/github.png);
background-size: 32px 32px;
width: 32px;
height: 32px;
display: inline-block;
}
.theme-changer {
background:none;
background-image: url(/images/contrast.png);
background-size: 32px 32px;
width: 32px;
height: 32px;
display: inline-block;
border:none;
margin-left: -5px;
}
/* dark theme */
body.dark-theme,
body.dark-theme > .container-fluid {
background-color: #222222;
color: #f7f1ff;
}
body.dark-theme #content {
background-color: #222222;
color: #f7f1ff;
min-height: 100vh;;
}
body.dark-theme #content #luaref table.classmembers td.doc div.dox,
body.dark-theme #content div.note,
body.dark-theme #content p.well,
body.dark-theme #content p.note {
background-color: #323132;
}
body.dark-theme #content #luaref h3.pointerclass,
body.dark-theme #content #luaref h3.class,
body.dark-theme #content #luaref h3.array,
body.dark-theme #content #luaref h3.enum {
color: black;
}
body.dark-theme #content figure img,
body.dark-theme #content kbd.menu,
body.dark-theme #content kbd.option,
body.dark-theme #content kbd.optoff,
body.dark-theme #content kbd.input {
background-color: white;
}
body.dark-theme #content .warning {
background-color: darkred;
}
body.dark-theme #content table tr:nth-child(2n+1) {
background-color: #191919;
}
body.dark-theme #content table tr:nth-child(2n) {
background-color: #222222;
}
body.dark-theme #content kbd.cmd.lin::before {
color: darkgreen;
}
body.dark-theme #content .github-link {
background-image: url(/images/github-light.png);
}
body.dark-theme #content .theme-changer {
background-image: url(/images/contrast-light.png);
}
body.dark-theme #content .for-green {
color:lightgreen;
}
body.dark-theme #content .for-red {
color:lightcoral;
}
body.dark-theme #content .fixme {
background-color: rebeccapurple;
}
body.dark-theme #content a {
color: #49abff;
}
body.dark-theme #content .pager li > a,
body.dark-theme #content .pager li > span {
background-color: #202020;
}
body.dark-theme #content .breadcrumb {
background-color: #212a30;
}
body.dark-theme #content .breadcrumb > .active {
color: #b7b7b7;
}
body.dark-theme #content #luaref div.code samp {
color: #007900;
}
body.dark-theme #content code a {
color: #006ac6
}
body.dark-theme #content div.luafooter {
color: white;
}
body.dark-theme #tree {
background-color: black;
}
body.dark-theme #tree a {
color: white;
text-shadow: 0 0 0 white;
}
body.dark-theme #tree .active > a {
color: #FF8080;
text-shadow: 0 0 0 #FF8080;
}
body.dark-theme .invert-in-dark {
filter: invert(1);
}
body.dark-theme pre {
background: #1f1f1f;
color: #9cdcfe;
}
body.dark-theme .well {
background: darkgrey;
color: black;
}

Binary file not shown.

After

Width:  |  Height:  |  Size: 9.2 KiB

BIN
source/images/contrast.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 2.5 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 4.3 KiB