Skip to content

Commit f25759a

Browse files
GuitarBroGuitarBro
GuitarBro
authored and
GuitarBro
committed
Full support for 3.0.x
1 parent c506ab5 commit f25759a

File tree

3 files changed

+116
-44
lines changed

3 files changed

+116
-44
lines changed

hub_patcher.py

Lines changed: 82 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010
/* */
1111
/******************************************/
1212
/* */
13-
/* Last updated on 2022-3-1. */
13+
/* Last updated on 2022-3-3. */
1414
/* */
1515
/* Tested with: */
1616
/* - v3.0.1 */
@@ -109,15 +109,30 @@
109109
110110
/* File input */
111111
.uhc-file-input__container-inputs{
112-
background-color: var(--bg-darker-2);
112+
background-color: var(--bg-darker-1);
113113
}
114114
.uhc-file-input__container-inputs:hover{
115-
background-color: var(--bg-darker-3);
115+
background-color: var(--bg-darker-2);
116+
}
117+
.uhc-file-input__container label{
118+
color: var(--text-lighter-1);
116119
}
117120
.uhc-file-input__container input{
118121
color: var(--main-text);
119122
}
120-
.uhc-file-input__container label{
123+
124+
/* Text input */
125+
.uhc-input__container input{
126+
background-color: var(--bg-darker-1);
127+
color: var(--main-text);
128+
}
129+
.uhc-input__container input:hover{
130+
background-color: var(--bg-darker-2);
131+
}
132+
.uhc-input__container input:focus{
133+
background-color: var(--bg-darker-1);
134+
}
135+
.uhc-input__container label{
121136
color: var(--text-lighter-1);
122137
}
123138
@@ -140,6 +155,9 @@
140155
color: var(--main-text-a50);
141156
background-color: var(--badge-gray);
142157
}
158+
.uhc-badge--yellow{
159+
background-color: var(--badge-gray);
160+
}
143161
144162
/* Context menu */
145163
.uhc-interactable__context-menu{
@@ -171,6 +189,11 @@
171189
color: var(--main-text);
172190
}
173191
192+
/* Modal right column */
193+
.modal__learn-content-detail .uhc-modal__container .uhc-modal__body .column--right{
194+
background-color: transparent;
195+
}
196+
174197
/* Drawer */
175198
.uha-drawer{
176199
background-color: var(--body-bg);
@@ -318,22 +341,22 @@
318341
color: var(--main-text);
319342
}
320343
.uhc-button-dropdown--secondary .uhc-button-dropdown__button, .uhc-button-dropdown--secondary .uhc-button-dropdown__dropdown{
321-
background-color: var(--bg-darker-2);
344+
background-color: var(--bg-darker-1);
322345
}
323346
.uhc-button-dropdown--secondary .uhc-button-dropdown__button:hover:not([disabled]), .uhc-button-dropdown--secondary .uhc-button-dropdown__dropdown:hover:not([disabled]){
324-
background-color: var(--bg-darker-3);
347+
background-color: var(--bg-darker-2);
325348
}
326349
.uhc-button-dropdown--secondary .uhc-button-dropdown__button:active:not([disabled]), .uhc-button-dropdown--secondary .uhc-button-dropdown__dropdown:active:not([disabled]){
327-
background-color: var(--bg-darker-5);
350+
background-color: var(--bg-darker-4);
328351
}
329352
330353
/* Dropdown select */
331354
.uhc-dropdown__container select{
332355
color: var(--main-text);
333-
background-color: var(--bg-darker-2);
356+
background-color: var(--bg-darker-1);
334357
}
335358
.uhc-dropdown__container select:hover{
336-
background-color: var(--bg-darker-3);
359+
background-color: var(--bg-darker-2);
337360
}
338361
.uhc-dropdown__container select:focus{
339362
background-color: var(--bg-darker-1);
@@ -353,6 +376,15 @@
353376
color: var(--text-darker-1);
354377
}
355378
379+
/* Editor version */
380+
.editor-version-item{
381+
background-color: var(--bg-darker-1);
382+
border-color: transparent;
383+
}
384+
.editor-version-item+.editor-version-item{
385+
border-color: transparent;
386+
}
387+
356388
/* Editor item platform button */
357389
.uha-modules-list .uha-modules-list__item, .uha-modules-list .uha-modules-list__item__button, .uha-modules-list .uha-modules-list__item__add-platform-button{
358390
color: var(--text-lighter-1);
@@ -419,6 +451,7 @@
419451
border-top-color: var(--bg-darker-2);
420452
background-color: var(--bg-darker-2);
421453
}
454+
.add-module__section-element-child:hover,
422455
.add-module__section-element:hover{
423456
background-color: var(--bg-darker-5);
424457
}
@@ -443,20 +476,31 @@
443476
background-color: var(--body-bg);
444477
}
445478
479+
/* Fade container */
480+
.uhc-fade-image__container{
481+
background-color: var(--bg-darker-1);
482+
}
483+
446484
/* Learn item */
447485
.uha-learn-item{
448486
background-color: var(--bg-darker-1);
449487
}
450488
.uha-learn-item:hover{
451489
background-color: var(--bg-darker-2);
452490
}
491+
.uha-learn-item__thumbnail-container{
492+
background-color: var(--bg-darker-1);
493+
}
453494
454495
/* Template sidebar */
455496
.template-sidebar{
456497
background-color: var(--body-bg);
457498
}
458499
459500
/* Template list */
501+
.template-list__item{
502+
border-color: var(--bg-darker-1);
503+
}
460504
.template-list__item--usable{
461505
background-color: var(--bg-darker-1);
462506
border-color: var(--bg-darker-1);
@@ -466,13 +510,41 @@
466510
border-color: var(--bg-darker-2);
467511
}
468512
513+
/* Template details */
514+
.modal__template-contents__info-paragraph.uhc-paragraph{
515+
color: var(--main-text);
516+
}
517+
.modal__template-contents .modal__template-contents__package__name{
518+
color: var(--main-text);
519+
}
520+
521+
/* Template download */
522+
.template-preview__downloading-label{
523+
background-color: var(--bg-darker-1);
524+
}
525+
469526
/* Editor selector */
470527
.editor-selector__container .editor-selector:hover, .editor-selector__container .editor-selector:focus{
471-
background-color: var(--bg-darker-1);
528+
background-color: var(--body-bg);
472529
}
473530
.editor-list-dropdown__container{
531+
background-color: var(--body-bg);
532+
}
533+
.editor-list-dropdown__editor-item{
534+
border-bottom-color: transparent;
535+
}
536+
.editor-list-dropdown__editor-item:hover, .editor-list-dropdown__editor-item:focus{
537+
background-color: var(--bg-darker-1);
538+
}
539+
.editor-list-dropdown__editor-item--selected{
474540
background-color: var(--bg-darker-1);
475541
}
542+
.editor-list-dropdown__editor-item .uhc-heading{
543+
color: var(--main-text);
544+
}
545+
.editor-list-dropdown__editor-item--selected .uhc-heading{
546+
color: var(--text-darker-1);
547+
}
476548
</style>
477549
"""
478550

readme.md

Lines changed: 34 additions & 34 deletions
Original file line numberDiff line numberDiff line change
@@ -1,34 +1,34 @@
1-
# Hub Patcher
2-
3-
Patches Unity Hub with a custom dark theme.
4-
5-
![Dark theme screenshot](/screenshot.png)
6-
7-
## Getting Started
8-
9-
_Make sure that Unity Hub is not running in the background before running Hub Patcher!_
10-
11-
Simply run hub_patcher.py with the path to your Unity Hub installation as the first arguement. You may have to run as administrator depending on where it is installed.
12-
13-
Ex: `python hub_patcher.py "D:/Program Files/Unity Hub"`
14-
15-
Note that Hub Patcher has only been tested on Windows 10 and Linux. OS X may or may not work.
16-
17-
### Troubleshooting
18-
19-
If you get `PermissionError: [WinError 32] The process cannot access the file because it is being used by another process: 'app.asar' -> 'app.asar.bak'` you likely have Unity Hub running in the background. Ensure the process is terminated before retrying.
20-
21-
### Prerequisites
22-
23-
* Node Package Manager (NPM)
24-
* Python 3.5+
25-
* Unity Hub 2.4.x
26-
27-
## License
28-
29-
This project is licensed under the MIT License - see the [LICENSE.md](LICENSE.md) file for details
30-
31-
## Acknowledgments
32-
33-
* Unity for creating Unity Hub
34-
* Electron team for making packaged Electron apps easy to reverse engineer
1+
# Hub Patcher
2+
3+
Patches Unity Hub with a custom ~dark~ light theme.
4+
5+
![Dark theme screenshot](/screenshot.png)
6+
7+
## Getting Started
8+
9+
_Make sure that Unity Hub is not running in the background before running Hub Patcher!_
10+
11+
Simply run hub_patcher.py with the path to your Unity Hub installation as the first arguement. You may have to run as administrator depending on where it is installed.
12+
13+
Ex: `python hub_patcher.py "D:/Program Files/Unity Hub"`
14+
15+
Note that Hub Patcher has only been tested on Windows 10 and Linux. OS X may or may not work.
16+
17+
### Troubleshooting
18+
19+
If you get `PermissionError: [WinError 32] The process cannot access the file because it is being used by another process: 'app.asar' -> 'app.asar.bak'` you likely have Unity Hub running in the background. Ensure the process is terminated before retrying.
20+
21+
### Prerequisites
22+
23+
* Node Package Manager (NPM)
24+
* Python 3.5+
25+
* Unity Hub 3.0.x
26+
27+
## License
28+
29+
This project is licensed under the MIT License - see the [LICENSE.md](LICENSE.md) file for details
30+
31+
## Acknowledgments
32+
33+
* Unity for creating Unity Hub
34+
* Electron team for making packaged Electron apps easy to reverse engineer

screenshot.png

13.6 KB
Loading

0 commit comments

Comments
 (0)