Skip to content

Commit 8b3ac5d

Browse files
committed
Update styles to have more padding, add minimize
1 parent c81e546 commit 8b3ac5d

File tree

15 files changed

+184
-32
lines changed

15 files changed

+184
-32
lines changed
Binary file not shown.
Binary file not shown.
208 Bytes
Binary file not shown.

UnityProject/AssetBundles/microengineer_flightui.bundle.manifest

Lines changed: 2 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
11
ManifestFileVersion: 0
2-
CRC: 1970053407
2+
CRC: 1886816605
33
Hashes:
44
AssetFileHash:
55
serializedVersion: 2
6-
Hash: 7f47c0e0c831b174319c551b67cdf666
6+
Hash: 16518aa2268b46f034c93f3e0a96a62a
77
TypeTreeHash:
88
serializedVersion: 2
99
Hash: d1d45f0ae4b48ad0a84d19bfd18ad535
@@ -38,20 +38,14 @@ SerializeReferenceClassIdentifiers:
3838
ClassName: UnityEngine.UIElements.StyleValueHandle
3939
- AssemblyName: UnityEngine.UIElementsModule
4040
ClassName: UnityEngine.UIElements.VisualElementAsset
41-
- AssemblyName: UnityEngine.UIElementsModule
42-
ClassName: UnityEngine.UIElements.VisualTreeAsset/UsingEntry
4341
Assets:
4442
- Assets/MicroEngineer/ManeuverFooter.uxml
4543
- Assets/MicroEngineer/Shared.uss
46-
- Assets/UI/micro_engineer/k2d2_cross.png
4744
- Assets/MicroEngineer/BaseWindow.uxml
4845
- Assets/MicroEngineer/MainGuiHeader.uxml
4946
- Assets/MicroEngineer/EditWindows.uxml
5047
- Assets/MicroEngineer/Flight.uss
51-
- Assets/UI/micro_engineer/falki_popout.png
52-
- Assets/UI/micro_engineer/k2dt_gear.png
5348
- Assets/MicroEngineer/StageInfoHeader.uxml
54-
- Assets/UI/micro_engineer/icon.png
5549
- Assets/MicroEngineer/EntryWindow.uxml
5650
- Assets/MicroEngineer/ManeuverHeader.uxml
5751
Dependencies:
1.8 KB
Binary file not shown.

UnityProject/AssetBundles/microengineer_oabui.bundle.manifest

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,16 @@
11
ManifestFileVersion: 0
2-
CRC: 701663706
2+
CRC: 3136566240
33
Hashes:
44
AssetFileHash:
55
serializedVersion: 2
6-
Hash: bac239acd2ae67266b82cb90c3b6d7cb
6+
Hash: 76720d4d6aebf8b093c38f09ebca6cef
77
TypeTreeHash:
88
serializedVersion: 2
9-
Hash: fef1669f70b5ac2355be935f129d74ef
9+
Hash: d1d45f0ae4b48ad0a84d19bfd18ad535
1010
HashAppended: 0
1111
ClassTypes:
12+
- Class: 28
13+
Script: {instanceID: 0}
1214
- Class: 114
1315
Script: {fileID: 11995, guid: 0000000000000000e000000000000000, type: 0}
1416
- Class: 114
@@ -41,4 +43,3 @@ Assets:
4143
- Assets/MicroEngineer/StageInfoOAB.uxml
4244
Dependencies:
4345
- E:/GitHub/KSP2/MyUnityProject/Assets/AssetBundles/kerbalui
44-
- E:/GitHub/KSP2/MyUnityProject/Assets/AssetBundles/microengineer_flightui.bundle

UnityProject/MicroEngineer/EntryWindow.uxml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
<ui:VisualElement name="title" class="window-title">
55
<ui:Label text="▼" display-tooltip-when-elided="true" name="title-arrow-down" class="arrow" style="display: flex;" />
66
<ui:Label text="▶" display-tooltip-when-elided="true" name="title-arrow-right" class="arrow" style="display: none;" />
7-
<ui:Label text="EntryWindow" display-tooltip-when-elided="true" name="window-name" />
7+
<ui:Label text="EntryWindow" display-tooltip-when-elided="true" name="window-name" style="margin-left: 3px;" />
88
<ui:Button name="settings-button" class="settings-button">
99
<ui:VisualElement name="settings-button__background" class="settings-button__background" />
1010
</ui:Button>

UnityProject/MicroEngineer/Flight.uss

Lines changed: 49 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@
4444
align-items: center;
4545
width: 220px;
4646
padding-left: 5px;
47-
padding-right: 5px;
47+
padding-right: 7px;
4848
padding-top: 2px;
4949
padding-bottom: 2px;
5050
border-top-left-radius: 5px;
@@ -111,6 +111,8 @@
111111
height: 20px;
112112
padding-bottom: 1px;
113113
padding-top: 1px;
114+
padding-left: 5px;
115+
padding-right: 3px;
114116
}
115117

116118
.window-title:hover {
@@ -166,10 +168,10 @@
166168
.settings-button {
167169
width: 20px;
168170
height: 20px;
169-
padding-left: 2px;
170-
padding-right: 2px;
171-
padding-top: 2px;
172-
padding-bottom: 2px;
171+
padding-left: 3px;
172+
padding-right: 3px;
173+
padding-top: 3px;
174+
padding-bottom: 3px;
173175
-unity-background-scale-mode: scale-to-fit;
174176
background-color: rgba(0, 0, 0, 0);
175177
border-left-width: 0;
@@ -180,7 +182,7 @@
180182
border-bottom-left-radius: 3px;
181183
border-top-right-radius: 3px;
182184
border-bottom-right-radius: 3px;
183-
margin-right: 10px;
185+
margin-right: 5px;
184186
}
185187

186188
.settings-button:hover {
@@ -197,10 +199,10 @@
197199
.popout-button {
198200
width: 20px;
199201
height: 20px;
200-
padding-left: 2px;
201-
padding-right: 2px;
202-
padding-top: 2px;
203-
padding-bottom: 2px;
202+
padding-left: 3px;
203+
padding-right: 3px;
204+
padding-top: 3px;
205+
padding-bottom: 3px;
204206
-unity-background-scale-mode: scale-to-fit;
205207
background-color: rgba(0, 0, 0, 0);
206208
border-left-width: 0;
@@ -232,10 +234,10 @@
232234
background-color: rgba(15, 19, 24, 0);
233235
width: 20px;
234236
height: 20px;
235-
padding-left: 2px;
236-
padding-right: 2px;
237-
padding-top: 2px;
238-
padding-bottom: 2px;
237+
padding-left: 3px;
238+
padding-right: 3px;
239+
padding-top: 3px;
240+
padding-bottom: 3px;
239241
-unity-background-scale-mode: scale-to-fit;
240242
border-top-left-radius: 3px;
241243
border-bottom-left-radius: 3px;
@@ -255,6 +257,38 @@
255257
-unity-background-scale-mode: scale-to-fit;
256258
}
257259

260+
.minimize-button {
261+
border-left-width: 0;
262+
border-right-width: 0;
263+
border-top-width: 0;
264+
border-bottom-width: 0;
265+
background-color: rgba(15, 19, 24, 0);
266+
width: 20px;
267+
height: 20px;
268+
padding-left: 4px;
269+
padding-right: 4px;
270+
padding-top: 4px;
271+
padding-bottom: 4px;
272+
-unity-background-scale-mode: scale-to-fit;
273+
border-top-left-radius: 3px;
274+
border-bottom-left-radius: 3px;
275+
border-top-right-radius: 3px;
276+
border-bottom-right-radius: 3px;
277+
margin-right: 6px;
278+
}
279+
280+
.minimize-button:hover {
281+
background-color: rgba(255, 255, 255, 0.25);
282+
}
283+
284+
.minimize-button__background {
285+
width: 100%;
286+
height: 100%;
287+
background-image: url('/Assets/UI/micro_engineer/minus.png');
288+
-unity-background-image-tint-color: rgb(192, 199, 213);
289+
-unity-background-scale-mode: scale-to-fit;
290+
}
291+
258292
.window-header {
259293
flex-shrink: 0;
260294
padding-left: 0;
@@ -590,7 +624,7 @@ TimeEntryControl .entry__value {
590624
padding-right: 5px;
591625
padding-top: 0;
592626
padding-bottom: 2px;
593-
min-height: 8px;
627+
min-height: 5px;
594628
}
595629

596630
.edit-window__root {

UnityProject/MicroEngineer/MainGuiHeader.uxml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,9 @@
33
<ui:VisualElement name="maingui-header" class="main-gui__header__standalone">
44
<ui:Button text="&#10;" display-tooltip-when-elided="true" name="editwindows-button" class="maingui-settings-button" />
55
<ui:Label text="micro.engineer" display-tooltip-when-elided="true" name="micro-engineer" class="main-gui__header-title" />
6+
<ui:Button name="minimize-button" class="minimize-button">
7+
<ui:VisualElement name="minimize-button__background" class="minimize-button__background" />
8+
</ui:Button>
69
<ui:Button name="close-button" class="close-button">
710
<ui:VisualElement name="close-button__background" class="close-button__background" />
811
</ui:Button>

UnityProject/UI/micro_engineer/falki_popout.png.meta

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)