Close

Dark theme for web UI please

Like to see something in a future release? Post your suggestions here.

Moderator: Staff

User avatar
orion44
 
Posts: 18
Joined: Thu Dec 22, 2016 3:13 am

Dark theme for web UI please

by orion44 » Thu Dec 22, 2016 3:19 am

The white background is terrible, especially in low light. Could an option for a dark theme be added?

Attached is screenshot of what a dark theme would look like.
Attachments
example.jpg
Example of dark theme
(76.56 KiB) Downloaded 155 times

no avatar
mosheldon
 
Posts: 28
Joined: Sun Jul 02, 2017 1:25 pm

Re: Dark theme for web UI please

by mosheldon » Sat Jul 08, 2017 12:49 am

+1

no avatar
janvier123
 
Posts: 13
Joined: Thu Oct 13, 2016 11:27 pm

Re: Dark theme for web UI please

by janvier123 » Wed Aug 09, 2017 1:37 am

Make one yourself and share the files?
I think you can add stuff into the index.html file


EDIT:

Open: C:\Program Files\Sighthound Video\svremoteviewer\index.html

Find line: (around line 42)
Code: Select all
<body>


Add below:
Code: Select all
    <style type="text/css">
      body {
         background-color: #000000;
      }
    </style>


You will see the background is now black, its a dirty way, but it works :)
NOTE: if you move the css higher up, it wont work

OR

in C:\Program Files\Sighthound Video\svremoteviewer create a new file like "custom.css" and add the following UNDER the <body> tag:

Code: Select all
<link rel="stylesheet" href="custom.css" />


Here is the original CSS, you can make any changes to it and re-add it to the index file.

Code: Select all
a,
div,
img,
p,
span {
    border: none
}
div.container {
    width: 98%;
    min-width: 970px;
    padding-left: 1%;
    padding-right: 1%;
    margin: auto
}
div.header {
    clear: both;
    width: auto;
    height: 80px;
    padding: 20px 0
}
div.header div.logo {
    float: left
}
div.header div.pageNav {
    float: left;
    margin-top: 22px;
    margin-left: 40px
}
div.header div.on-off {
    margin-top: 22px;
    float: right
}
div.header div.cameras {
    float: right;
    text-align: right;
    margin-top: 28px;
    margin-right: 20px
}
div.content {
    width: 98%;
    min-height: 300px;
    border: 1px solid #ccc;
    border-radius: 0;
    padding: 10px 1%;
    background-color: #f9f9f9;
    margin-bottom: 10px
}
div.contextMenu {
    height: 44px;
    margin-bottom: 10px
}
div.contextMenu div.backButton {
    float: left;
    margin-right: 15px
}
div.contextMenu div.title {
    font-weight: 700;
    margin-right: 15px
}
div.contextMenu div.date,
div.contextMenu div.title {
    height: 44px;
    font-size: 18px;
    line-height: 44px;
    float: left
}
div.contextMenu div.cameras {
    float: right;
    text-align: right;
    margin-top: 7px;
    margin-right: 20px
}
div#live_right_time {
    float: right
}
div#live_right_time #liveTime {
    margin-right: 15px
}
div.contextMenu div.dropdown,
div.contextMenu div.on-off,
div.contextMenu div.views {
    float: right
}
div.contextMenu div.fullscreen {
    float: right;
    margin-left: 10px
}
div.liveVideoContainer {
    min-height: 500px;
    clear: both
}
video {
    width: 100%;
    height: 100%;
    background-color: #000;
    color: #fff
}
#cameraGrid {
    position: relative
}
div.videos {
    clear: both;
    width: auto;
    display: block;
    margin: 0 auto
}
.cameraVideo {
    display: inline-block;
    margin: 5px;
    vertical-align: top;
    text-align: left;
    overflow: hidden
}
.videoImgContainer {
    background-color: #000;
    margin: 0 auto
}
.videoImgContainer img {
    max-height: 100%;
    max-width: 100%;
    height: auto;
    width: auto;
    vertical-align: middle
}
.videoImgContainer img.tall {
    height: 100%;
    width: auto
}
.videoImgContainer img.wide {
    height: auto;
    width: 100%
}
html {
    height: 100%
}
body {
    background: #fff;
    color: #4d4d4d;
    font-family: Helvetica Neue, Helvetica, Arial, sans-serif;
    font-weight: 400;
    font-style: normal;
    font-size: 14px;
    -webkit-font-smoothing: antialiased;
    margin: 0;
    padding: 0
}
a,
span.expressive {
    color: #0071bc
}
a,
a:hover,
span.expressive {
    text-decoration: none
}
.enableRule {
    display: inline-block;
    vertical-align: top;
    width: 121px;
    margin-top: 8px;
    height: 53px
}
.buttonBar {
    background: -webkit-gradient(linear, 0 0, 0 100%, from(#ddd), to(#fff));
    background: -webkit-linear-gradient(bottom, #ddd, #fff);
    background: -moz-linear-gradient(bottom, #ddd, #fff);
    background: -ms-linear-gradient(bottom, #ddd, #fff);
    background: -o-linear-gradient(bottom, #ddd, #fff);
    border: 1px solid #ccc;
    -moz-border-radius: 10px;
    border-radius: 10px
}
a.button {
    padding: 12px 18px
}
.enableRule a.button,
a.button {
    text-transform: uppercase;
    display: inline-block;
    border-radius: 10px
}
.enableRule a.button {
    padding: 18px
}
a.buttonIcon {
    padding: 10px 14px;
    display: inline-block;
    border-radius: 10px
}
a.button:hover,
a.buttonIcon:hover {
    background-color: #fff
}
a.active {
    color: #fff;
    background: -webkit-gradient(linear, 0 0, 0 100%, from(#0071bc), to(#29abe2));
    background: -webkit-linear-gradient(bottom, #0071bc, #29abe2);
    background: -moz-linear-gradient(bottom, #0071bc, #29abe2);
    background: -ms-linear-gradient(bottom, #0071bc, #29abe2);
    background: -o-linear-gradient(bottom, #0071bc, #29abe2);
    border-radius: 10px;
    -moz-border-radius: 10px;
    font-weight: 700
}
.cameraVideo a {
    display: block
}
#cameraGrid .cameraVideo a {
    position: relative
}
div.cameraTitle {
    background-color: rgba(34, 34, 34, .5);
    padding: 4px 0;
    position: absolute;
    bottom: 0;
    width: 100%
}
a .cameraTitle {
    color: #fff
}
.cameraTitle span {
    margin-left: 4px
}
div.rule {
    color: #0071bc;
    width: 770px;
    width: calc(100% - 167px);
    border: 1px solid #ccc;
    margin-right: 10px;
    margin-top: 8px;
    margin-bottom: 0;
    padding: 10px 15px;
    display: inline-block;
    background: -webkit-gradient(linear, 0 0, 0 100%, from(#e6e6e6), to(#fff));
    background: -webkit-linear-gradient(bottom, #e6e6e6, #fff);
    background: -moz-linear-gradient(bottom, #e6e6e6, #fff);
    background: -ms-linear-gradient(bottom, #e6e6e6, #fff);
    background: -o-linear-gradient(bottom, #e6e6e6, #fff)
}
div.rule span {
    font-weight: 700;
    margin: 7px 10px 0 0;
    text-decoration: underline;
    float: right
}
div.rule span:hover {
    cursor: pointer
}
div.ruleDescription,
div.ruleIcon {
    margin-right: 15px;
    float: left
}
div.ruleLink {
    margin-top: 8px;
    float: right
}
.ellipsis {
    white-space: nowrap;
    overflow: hidden;
    display: block
}
.ellipsis.multiline {
    white-space: normal
}
#cameraName {
    width: 315px;
    overflow: hidden
}
.cameraVideo img {
    border: none
}
.blockOverlay {
    opacity: .3!important
}
#video-message h1 {
    color: #fff;
    padding-top: 30%;
    text-align: center
}
.cameraTitle span {
    white-space: nowrap
}
div.cameraTitle {
    overflow-x: hidden;
    text-overflow: ellipsis
}
.liveVideoContainer {
    background-color: #000!important
}
#cameraRuleList .ruleDescription {
    white-space: nowrap;
    max-width: 600px;
    overflow-x: hidden;
    text-overflow: ellipsis
}


NOTE: make sure you keep a copy somewhere, if there is an update, your css will be gone ;)


Return to Feature Requests
cron