Merge pull request #2948 from myk002/myk_interior_frame

Add standard interior frame to gui.lua
develop
Myk 2023-02-26 09:23:09 -08:00 committed by GitHub
commit bf64f1d985
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 8 additions and 3 deletions

@ -45,8 +45,10 @@ changelog.txt uses a syntax similar to RST, with a few special sequences:
## API
## Lua
-@ ``gui.INTERIOR_FRAME``: a panel frame style for use in highlighting off interior areas of a UI
## Removed
-@ ``gui.THIN_FRAME``: replaced by ``gui.INTERIOR_FRAME``
# 50.07-alpha2

@ -4325,9 +4325,11 @@ There are the following predefined frame style tables:
A frame suitable for overlay widget panels.
* ``THIN_FRAME``
* ``INTERIOR_FRAME``
A frame suitable for light accent elements.
A frame suitable for light interior accent elements. This frame does *not* have
a visible ``DFHack`` signature on it, so it must not be used as the most external
frame for a DFHack-owned UI.
gui.widgets
===========

@ -916,7 +916,8 @@ end
WINDOW_FRAME = make_frame('Window', true)
PANEL_FRAME = make_frame('Panel', false)
MEDIUM_FRAME = make_frame('Medium', false)
THIN_FRAME = make_frame('Thin', false)
INTERIOR_FRAME = make_frame('Thin', false)
INTERIOR_FRAME.signature_pen = false
-- for compatibility with pre-steam code
GREY_LINE_FRAME = WINDOW_FRAME