Skip to content

Commit

Permalink
Separate remote-control css theme values.
Browse files Browse the repository at this point in the history
  • Loading branch information
bitbound committed Apr 4, 2020
1 parent 88bd1a7 commit d7f1a56
Show file tree
Hide file tree
Showing 9 changed files with 274 additions and 422 deletions.
8 changes: 4 additions & 4 deletions Agent/Services/CMD.cs
Original file line number Diff line number Diff line change
Expand Up @@ -53,10 +53,10 @@ public static CMD GetCurrent(string connectionID)
{
if (Sessions.ContainsKey(connectionID))
{
var bash = Sessions[connectionID];
bash.ProcessIdleTimeout.Stop();
bash.ProcessIdleTimeout.Start();
return bash;
var cmd = Sessions[connectionID];
cmd.ProcessIdleTimeout.Stop();
cmd.ProcessIdleTimeout.Start();
return cmd;
}
else
{
Expand Down
6 changes: 3 additions & 3 deletions Desktop.Linux/ViewModels/MainWindowViewModel.cs
Original file line number Diff line number Diff line change
Expand Up @@ -243,14 +243,14 @@ private void InstallDependencies()
var psi = new ProcessStartInfo()
{
FileName = "bash",
Arguments = "-c apt-get -y install libc6-dev ; " +
Arguments = "-c \"apt-get -y install libc6-dev ; " +
"apt-get -y install libgdiplus ; " +
"apt-get -y install libxtst-dev ; " +
"apt-get -y install xclip",
"apt-get -y install xclip\"",
CreateNoWindow = true,
WindowStyle = ProcessWindowStyle.Hidden
};
Process.Start(psi).WaitForExit();
Process.Start(psi);
}
private void ScreenCastRequested(object sender, ScreenCastRequest screenCastRequest)
{
Expand Down
1 change: 1 addition & 0 deletions Server/Pages/RemoteControl.cshtml
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@
<link href="~/manifest-rc.json" rel="manifest" />
<meta name="description" content="Remote access tools designed to get things done quickly." />
<link rel="stylesheet" href="~/css/site.css" asp-append-version="true" />
<link href="~/css/remote-control.css" rel="stylesheet" asp-append-version="true" />
@if (AppConfig.Theme.ToLower() == "light")
{
<link href="~/css/remote-control-light.css" rel="stylesheet" asp-append-version="true" />
Expand Down
201 changes: 0 additions & 201 deletions Server/wwwroot/css/remote-control-dark.css
Original file line number Diff line number Diff line change
@@ -1,19 +1,11 @@
body {
background-color: rgb(25,25,25);
font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
font-size: 14px;
line-height: 1.42857143;
color: #888888;
margin: 0;
padding: 0;
}

button {
cursor: pointer;
background-color: rgb(40,40,40);
color: white;
border-radius: 5px;
border: none;
}


Expand All @@ -34,61 +26,19 @@ button[disabled] {
color: gray;
}

.center-aligned {
text-align: center;
}


.option-button {
position: relative;
height: 40px;
margin: 5px 0;
width: 90%;
user-select: none;
}

.horizontal-bar-button {
height: 35px;
margin: 5px;
}

.menu-options-header {
text-align: center;
color: lightgray;
margin: 20px 0 5px 0;
font-family: monospace;
font-size: .9em;
}

#menuButton {
position: absolute;
top: 50%;
left: 0;
color: gray;
transform: translateY(-50%);
background-color: rgb(50,50,50);
font-size: 1.5em;
padding: 20px 5px;
border-radius: 0 3px 3px 0;
pointer-events: all;
cursor: pointer;
z-index: 3;
transition: .5s ease left;
user-select: none;
}
#menuButton:hover {
color: white;
}
#menuButton:focus {
outline: none;
}

#menuButton.open {
left: 150px;
transform: translateY(-50%) rotateY(180deg);
border-radius: 3px 0 0 3px;
transition: .5s ease left;
}

#menuFrame {
position: absolute;
Expand All @@ -106,196 +56,45 @@ button[disabled] {
transition: .5s ease all;
}

#menuFrame.open {
width: 150px;
opacity: 1;
transition: .5s ease all;
}



.horizontal-button-bar {
position: fixed;
background-color: rgb(90, 90, 90);
height: 0;
padding: 0;
top: 10px;
left: 50%;
transform: translateX(-50%);
z-index: 3;
transition: all 250ms;
border-radius: 5px;
overflow: hidden;
white-space: nowrap;
text-align: center;
}

.horizontal-button-bar.open {
height: auto;
min-height: 40px;
padding: 10px;
transition: all 250ms;
}


#screenViewer {
max-width: 99vw;
max-height: 99vh;
z-index: 1;
-ms-touch-action: manipulation;
touch-action: manipulation;
}

#connectBox {
position: fixed;
top: 40%;
left: 50%;
transform: translate(-50%, -50%);
border: 1px solid white;
border-radius: 5px;
background-color: rgb(60, 60, 60);
width: 300px;
color: white;
z-index: 2;
padding: 0 20px 20px 20px;
}

#connectBox button {
height: 30px;
}

#connectBox input {
width: 100%;
}

.remotely-header {
position: fixed;
top: 15px;
left: 15px;
animation: fadeout 3s ease 2s forwards;
z-index: -1;
}

@keyframes fadeout {
0% {
opacity: 1;
}

100% {
opacity: .1;
}
}

.logo-subtitle {
font-size: .6em;
color: deepskyblue;
}

.logo-title {
font-size: 18px;
color: white;
}

footer {
position: fixed;
bottom: 0;
width: 100vw;
text-align: center;
pointer-events: none;
z-index: -1;
}

footer a {
color: deepskyblue;
}

.footer-wrapper {
display: grid;
grid-template-columns: 1fr 1fr;
font-size: .9em;
}

.right-aligned {
text-align: right;
}

.form-block {
margin-bottom: 10px;
}

.status-message {
color: deepskyblue;
font-size: .9em;
}

.float-message {
position: fixed;
top: 20px;
left: 50%;
transform: translate(-50%, 0);
padding: 10px;
font-size: 1.25em;
font-weight: bold;
background-color: rgba(0, 0, 0, .75);
opacity: 1;
color: white;
z-index: 4;
border-radius: 5px;
user-select: none;
pointer-events: none;
animation-name: float-message;
animation-delay: 2s;
animation-duration: .5s;
animation-fill-mode: forwards;
animation-timing-function: ease-in;
}

@keyframes float-message {
from {
transform: translate(-50%, 0);
}

to {
transform: translate(-50%, calc(-100% - 25px));
}
}

.modal-prompt {
position: fixed;
top: 50%;
left: 50%;
transform: translate(-50%, -50%);
padding: 10px;
background-color: rgb(60, 60, 60);
border: 2px solid white;
border-radius: 5px;
box-shadow: 10px 10px 5px rgba(50,50,50,0.9);
z-index: 3;
min-height: 100px;
color: white;
}
.modal-prompt input {
margin-top: 15px;
width: 100%;
}
.buttons-footer {
text-align: right;
margin-top: 10px
}
.buttons-footer button {
height: 30px;
width: 60px;
margin-left: 10px;
}

#touchKeyboardTextArea {
position: fixed;
top: -100%;
}

.connection-icon {
padding: 5px;
}

#connectionRelayedIcon {
background-color: orange;
Expand Down
Loading

0 comments on commit d7f1a56

Please sign in to comment.