GS/OS (Apple IIgs)¶
The gsos pack imitates the Apple IIgs Finder under GS/OS System 6 (1988–1993) in the super hi-res 640 mode: a 640 × 200 screen whose pixels are twice as tall as they are wide, drawn here as 640 × 400 points — so horizontal rules are two points thick and vertical rules one. The look is the IIgs desktop: a white menu bar with a colour glyph at the left where the Apple menu was (a neutral striped shape, not the logo), a dithered blue desktop pattern, white windows with black frames and lined title bars, the close box at the left and the zoom box at the right, the Finder's info bar, scroll bars with dithered tracks and arrow boxes at each end, rounded push buttons with the bold outline round the default button, check boxes with an X, pop-up menus with a drop shadow, modal dialogs and alerts with the double frame, selection shown by inverting, and the Control Panel desk accessory. Type imitates Shaston, the IIgs system font, falling back to Chicago and Geneva.
Select it with import GSOS (also AppleIIgs, IIgs) or pack="gsos" on the fence. The default
device is a 640 × 400 window drawn by the window chrome; device="screen" gives the whole screen for
a Desktop holding a MenuBar, windows and icons placed with .position(x:y:). The main elements
are MenuBar, AppleMenu, MenuTitle, MenuItem, Window / FinderWindow / NDAWindow,
InfoBar, Folder / Disk / HardDisk / DocumentIcon / ApplicationIcon / TrashIcon,
Button / DefaultButton, CheckBox, RadioButton, RadioGroup, PopupMenu, LineEdit,
TextEdit, ListControl, ScrollArea, ProgressBar, Frame, ModalDialog, Dialog,
Alert (severity: .stop | .note | .caution) and ControlPanel.
The IIgs had no dark mode, but the Finder could put windows on a black desktop; appearance: dark
inverts the screen — white ink on black, a near-black desktop — in that spirit.
The Finder¶
The desktop with the File menu pulled down over two Finder windows: the startup disk in icon view and a folder in list view, with the disk icons and the Trash along the right edge.
| Name | Size | Kind |
|---|---|---|
| Harbour.Office | 4K | AppleWorks GS |
| Lamp.Order | 2K | AppleWorks GS |
| Readings.Oct | 9K | Teach text |
| Old.Letters | — | Folder |
A document window¶
An invented word processor in one window drawn by the window chrome: the lined title bar comes from
the fence title, and ScrollArea draws the IIgs scroll bars with the grow box. Shown in both schemes.
Source
VStack(spacing: 0) {
HStack(spacing: 10) {
PopupMenu(items: ["Shaston", "Courier", "Helvetica"], selection: "Courier")
PopupMenu(items: ["8", "10", "12"], selection: "12")
Spacer()
Text("Page 1 of 2")
}
.padding(.horizontal, 8)
.padding(.vertical, 4)
Divider()
ScrollArea {
VStack(alignment: .leading, spacing: 10) {
Text("**To:** Harbour Supply Co., Pier 4")
Text("Please send four (4) brass lamp gaskets, part 22-B, and one tin of gallery-deck enamel, grey. Charge to the North Jetty account.")
Text("The October lamp readings follow on the next page. The fog signal was tested on the 12th and the 26th and ran to time.")
Text("— J. Keeper")
}
.padding(8)
}
}
.frame(maxWidth: .infinity, maxHeight: .infinity)A dialog with every control¶
A modal dialog drawn in place with the double frame: pop-up menus with their titles and drop shadows, a LineEdit with the insertion point, radio buttons, check boxes (checked ones show an X), a list, the thermometer and the button row with the default button's bold outline.
Source
ModalDialog {
Text("**ImageWriter II**")
HStack(alignment: .top, spacing: 24) {
VStack(alignment: .leading, spacing: 8) {
PopupMenu("Quality:", items: ["Draft", "Better", "Best"], selection: "Better")
LineEdit(label: "Copies:", text: "2").state(.focused).frame(width: 130)
RadioGroup("Pages:", items: ["All", "From 1 to 2"], selection: "All")
}
VStack(alignment: .leading, spacing: 6) {
CheckBox("Color ribbon", checked: true)
CheckBox("Fast mode")
CheckBox("Tall adjusted", checked: true)
CheckBox("Envelopes").disabled()
}
}
Frame("Paper") {
ListControl {
ListItem("US Letter")
ListItem("US Legal").selected()
ListItem("Computer Paper")
}
.frame(height: 70)
}
ProgressBar("Spooling page 1…", value: 0.4)
HStack(spacing: 12) {
Spacer()
Button("Cancel")
DefaultButton("Print")
}
}
.frame(width: 440)An alert¶
Ejecting a disk with an open document: the Caution alert with the double frame, Don't Save apart at the left and Save as the default.
The Control Panel¶
The Control Panel new desk accessory: the list of control panel devices (CDevs) at the left built
from the CDevRow component, the selected General CDev at the right with CDevChoice rows, and a
stop alert about to be dismissed.
Anatomy of a GS/OS window¶
A Finder window, annotated: the close box 1, the lined title bar with the window name 2, the zoom box 3, the info bar 4, a selected icon shown inverted 5, the dithered scroll-bar track with an arrow box at each end 6 and the grow box 7.