Skip to content

Commit

Permalink
Left window controls fixes (#111)
Browse files Browse the repository at this point in the history
  • Loading branch information
Foldex authored Feb 11, 2023
1 parent b4aa515 commit 1004b9a
Show file tree
Hide file tree
Showing 5 changed files with 117 additions and 1 deletion.
20 changes: 20 additions & 0 deletions extras/patches/windowcontrols/left-all.patch
Original file line number Diff line number Diff line change
Expand Up @@ -133,3 +133,23 @@

place { control="frame_title" width=max height=48 }

--- Adwaita/steam/cached/SingleUpdateNewsDialog.res
+++ Adwaita/steam/cached/SingleUpdateNewsDialog.res
@@ -6,11 +6,16 @@
{
inset="2 0 2 2"
}
+
+ FrameTitle
+ {
+ padding-left=45
+ }
}

layout
{
- place { control="frame_minimize,frame_close" align=right spacing=14 margin-right=12 y=12 }
+ place { control="frame_close,frame_minimize" align=left spacing=14 margin-left=12 y=12 }

place { control="frame_title" width=max height=48 }

10 changes: 10 additions & 0 deletions extras/patches/windowcontrols/left.patch
Original file line number Diff line number Diff line change
Expand Up @@ -118,3 +118,13 @@

place { control="frame_title" width=max height=48 }

--- Adwaita/steam/cached/SingleUpdateNewsDialog.res
+++ Adwaita/steam/cached/SingleUpdateNewsDialog.res
@@ -10,7 +10,7 @@

layout
{
- place { control="frame_minimize,frame_close" align=right spacing=14 margin-right=12 y=12 }
+ place { control="frame_minimize,frame_close" align=left spacing=14 margin-left=12 y=12 }

place { control="frame_title" width=max height=48 }
53 changes: 53 additions & 0 deletions extras/web/extras/windowcontrols/left-all.css
Original file line number Diff line number Diff line change
@@ -0,0 +1,53 @@
/* ------------------------------------- */
/* --- Left Aligned Window Controls --- */
/* ------------------------------------- */
.title-bar-actions
{
flex-direction: row !important;
left: 0px !important;
right: auto !important;
}

/* App Properties Titles */
.ModalDialogPopup [class*="pagedsettings_PagedSettingsDialog_PageListColumn_"] > [class*="pagedsettings_PagedSettingsDialog_Title_"]
{
padding-left: 50px !important;
padding-right: 50px !important;
}

/* Friendslist */
.currentUserContainer .AvatarAndUser
{
padding-left: 125px !important;
}

.title-bar-actions .title-area-icon.minimizeButton,
.title-bar-actions .title-area-icon.maximizeButton
{
display: block !important;
}

.title-bar-actions .title-area-icon.maximizeButton
{
order: 3 !important;
}

.multiChatDialog .title-bar-actions {
position: fixed !important;
}

/* Content Management */
[class*="contentmanagement_ContentManagement_"] [class*="contentmanagement_PageableCarousel_"]
{
margin-left: 70px !important;
}

/* ------------------------------------------ */
/* --- Show Minimize and Maximize Button --- */
/* ------------------------------------------ */
.title-bar-actions .title-area-icon.minimizeButton,
.title-bar-actions .title-area-icon.maximizeButton
{
display: block !important;
}

31 changes: 31 additions & 0 deletions extras/web/extras/windowcontrols/left.css
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
/* ------------------------------------- */
/* --- Left Aligned Window Controls --- */
/* ------------------------------------- */
.title-bar-actions
{
left: 0px !important;
right: auto !important;
}

/* App Properties Titles */
.ModalDialogPopup [class*="pagedsettings_PagedSettingsDialog_PageListColumn_"] > [class*="pagedsettings_PagedSettingsDialog_Title_"]
{
padding-left: 50px !important;
padding-right: 50px !important;
}

/* Friendslist */
.currentUserContainer .AvatarAndUser
{
padding-left: 50px !important;
}

.multiChatDialog .title-bar-actions {
position: fixed !important;
}

/* Content Management */
[class*="contentmanagement_ContentManagement_"] [class*="contentmanagement_PageableCarousel_"]
{
margin-left: 70px !important;
}
4 changes: 3 additions & 1 deletion install.py
Original file line number Diff line number Diff line change
Expand Up @@ -74,6 +74,8 @@
SHARED_PATCHES = [
"windowcontrols/hide-close",
"windowcontrols/right-all",
"windowcontrols/left-all",
"windowcontrols/left",
]

# List Options
Expand Down Expand Up @@ -137,7 +139,7 @@ def gen_webkit_theme(target: Path, name: str, selected_extras: list[Path]):
we = f.removesuffix(".css")
f = Path(f)

if not f.exists or f.suffix != ".css":
if not f.exists() or f.suffix != ".css":
f = webthemedir / "extras/{}{}".format(we, ".css")

if f.exists():
Expand Down

0 comments on commit 1004b9a

Please sign in to comment.