Skip to content

Commit

Permalink
Submenu styles #159
Browse files Browse the repository at this point in the history
  • Loading branch information
Levminer committed Dec 12, 2021
1 parent 2ed225e commit 97960cc
Show file tree
Hide file tree
Showing 4 changed files with 34 additions and 71 deletions.
12 changes: 6 additions & 6 deletions app/settings/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -513,7 +513,7 @@ <h3>Reset</h3>
</div>
<div class="flex flex-col md:w-4/5 lg:w-2/3 mx-auto rounded-2xl bg-gray-800 mb-20">
<div class="flex justify-center items-center">
<h3>Zoom in</h3>
<h3>Zoom In</h3>
</div>
<div class="flex justify-center items-center">
<input class="input" disabled type="text" id="hk13_input" />
Expand All @@ -540,7 +540,7 @@ <h3>Zoom in</h3>
</div>
<div class="flex flex-col md:w-4/5 lg:w-2/3 mx-auto rounded-2xl bg-gray-800 mb-20">
<div class="flex justify-center items-center">
<h3>Zoom out</h3>
<h3>Zoom Out</h3>
</div>
<div class="flex justify-center items-center">
<input class="input" disabled type="text" id="hk14_input" />
Expand All @@ -567,7 +567,7 @@ <h3>Zoom out</h3>
</div>
<div class="flex flex-col md:w-4/5 lg:w-2/3 mx-auto rounded-2xl bg-gray-800 mb-20">
<div class="flex justify-center items-center">
<h3>Edit codes</h3>
<h3>Edit Codes</h3>
</div>
<div class="flex justify-center items-center">
<input class="input" disabled type="text" id="hk3_input" />
Expand Down Expand Up @@ -675,7 +675,7 @@ <h3>Documentation</h3>
</div>
<div class="flex flex-col md:w-4/5 lg:w-2/3 mx-auto rounded-2xl bg-gray-800 mb-20">
<div class="flex justify-center items-center">
<h3>Release notes</h3>
<h3>Release Notes</h3>
</div>
<div class="flex justify-center items-center">
<input class="input" disabled type="text" id="hk6_input" />
Expand All @@ -702,7 +702,7 @@ <h3>Release notes</h3>
</div>
<div class="flex flex-col md:w-4/5 lg:w-2/3 mx-auto rounded-2xl bg-gray-800 mb-20">
<div class="flex justify-center items-center">
<h3>Support development</h3>
<h3>Support Development</h3>
</div>
<div class="flex justify-center items-center">
<input class="input" disabled type="text" id="hk7_input" />
Expand All @@ -729,7 +729,7 @@ <h3>Support development</h3>
</div>
<div class="flex flex-col md:w-4/5 lg:w-2/3 mx-auto rounded-2xl bg-gray-800 mb-20">
<div class="flex justify-center items-center">
<h3>Show licenses</h3>
<h3>Show Licenses</h3>
</div>
<div class="flex justify-center items-center">
<input class="input" disabled type="text" id="hk9_input" />
Expand Down
24 changes: 12 additions & 12 deletions main.js
Original file line number Diff line number Diff line change
Expand Up @@ -1551,7 +1551,7 @@ const createTray = () => {
},
{ type: "separator" },
{
label: application_shown ? "Hide app" : "Show app",
label: application_shown ? "Hide App" : "Show App",
accelerator: shortcuts ? "" : settings.global_shortcuts.show,
click: () => {
showAppFromTray()
Expand All @@ -1570,7 +1570,7 @@ const createTray = () => {
},
{ type: "separator" },
{
label: "Exit app",
label: "Exit App",
accelerator: shortcuts ? "" : settings.global_shortcuts.exit,
click: () => {
exitFromTray()
Expand All @@ -1591,7 +1591,7 @@ const createMenu = () => {
label: "File",
submenu: [
{
label: application_shown ? "Hide app" : "Show app",
label: application_shown ? "Hide App" : "Show App",
accelerator: shortcuts ? "" : settings.shortcuts.show,
click: () => {
showAppFromTray()
Expand Down Expand Up @@ -1653,23 +1653,23 @@ const createMenu = () => {
submenu: [
{
label: "Reset",
role: "resetZoom",
role: shortcuts ? "" : "resetZoom",
accelerator: shortcuts ? "" : settings.shortcuts.zoom_reset,
},
{
type: "separator",
},
{
label: "Zoom in",
role: "zoomIn",
label: "Zoom In",
role: shortcuts ? "" : "zoomIn",
accelerator: shortcuts ? "" : settings.shortcuts.zoom_in,
},
{
type: "separator",
},
{
label: "Zoom out",
role: "zoomOut",
label: "Zoom Out",
role: shortcuts ? "" : "zoomOut",
accelerator: shortcuts ? "" : settings.shortcuts.zoom_out,
},
],
Expand All @@ -1678,7 +1678,7 @@ const createMenu = () => {
label: "Tools",
submenu: [
{
label: "Edit codes",
label: "Edit Codes",
enabled: authenticated,
accelerator: shortcuts ? "" : settings.shortcuts.edit,
click: () => {
Expand Down Expand Up @@ -1806,7 +1806,7 @@ const createMenu = () => {
type: "separator",
},
{
label: "Release notes",
label: "Release Notes",
accelerator: shortcuts ? "" : settings.shortcuts.release,
click: () => {
releaseNotes()
Expand All @@ -1816,7 +1816,7 @@ const createMenu = () => {
type: "separator",
},
{
label: "Support development",
label: "Support Development",
accelerator: shortcuts ? "" : settings.shortcuts.support,
click: () => {
support()
Expand All @@ -1828,7 +1828,7 @@ const createMenu = () => {
label: "About",
submenu: [
{
label: "Show licenses",
label: "Show Licenses",
accelerator: shortcuts ? "" : settings.shortcuts.licenses,
click: () => {
dialog
Expand Down
2 changes: 1 addition & 1 deletion src/global.css

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

67 changes: 15 additions & 52 deletions src/partials/layout/titlebar.scss
Original file line number Diff line number Diff line change
@@ -1,61 +1,24 @@
/* titlebar */
.window-title {
display: none;
}

body > div.titlebar.cet-windows > div.window-controls-container {
display: none;
}

body > div.titlebar.cet-windows > div.menubar > div.menubar-menu-button.open > ul > li > a {
text-decoration: none !important;
}

.focused {
background-color: rgb(30, 30, 30);
}

body > div.titlebar.cet-windows > div.menubar > div:hover {
background-color: rgb(30, 30, 30);
}

body > div.titlebar.cet-windows > div.menubar > div.menubar-menu-button.open > ul > li > a > span.keybinding {
text-transform: capitalize;
}

body > div.titlebar.cet-windows > div.menubar > div.menubar-menu-button.open > ul > li > a {
margin-left: 0;
margin-right: 0;
}

.separator {
border-color: rgb(40, 40, 40) !important;
opacity: 1 !important;
}

.menubar-menu-container {
border: 1px rgb(40, 40, 40) solid !important;
}

.menu-item-icon {
width: 0 !important;
height: 0 !important;
}

.menubar-menu-container {
padding: 0.2em 0 !important;
}

body > div.titlebar.cet-windows > div.menubar > div.menubar-menu-button.open > ul > li:nth-child(3) {
margin-top: 1px;
margin-bottom: 1px;
}

#inWwZYhAUIn1Em9I4xse {
font-family: Arial, Helvetica, sans-serif;
color: white !important;
}

/* controls */
#Dkn6ACv01kUS9jSTUukB {
display: none !important;
}

/* submenu */
._QlZaSdX5nLPcY6VswOO {
background-color: rgb(0, 0, 0) !important;
border: 1px solid rgb(40, 40, 40);
text-transform: capitalize !important;
}

/* separator */
.QwagKaGf3ay8KUEwaA29 {
margin: 8px 0px !important;
background-color: rgb(40, 40, 40) !important;
opacity: 1 !important;
}

0 comments on commit 97960cc

Please sign in to comment.