Skip to content

Commit

Permalink
random adjustments
Browse files Browse the repository at this point in the history
  • Loading branch information
keenanlang committed Jun 21, 2024
1 parent 5e7bb58 commit c1cb959
Show file tree
Hide file tree
Showing 5 changed files with 22 additions and 7 deletions.
Binary file removed templates/beamline/__pycache__/__init__.cpython-310.pyc
Binary file not shown.
Binary file not shown.
Binary file not shown.
2 changes: 1 addition & 1 deletion templates/multimotor/layout.yml
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@ motor_grid: !grid

alignment: Center

geometry: 3x1 x 154x21
geometry: 154x21

pv: "$(P)$(M{N}).DESC"

Expand Down
27 changes: 21 additions & 6 deletions templates/widgets.yml
Original file line number Diff line number Diff line change
Expand Up @@ -127,26 +127,41 @@ _OnOffText: !Template:OnOffText

_LabeledReadback: !Template:LabeledReadback
- !Defaults
text-height: 20
spacing: 15
fontname: "Liberation Sans"
fontsize: 11
highlight: *transparent
units: False

- !hflow
padding: "{spacing}"
children:
- !Text
geometry: "{text-width}x20"
font: "-{fontname} -Regular -11"
alignment: CenterRight
geometry: "{text-width}x{text-height}"
font: "-{fontname} -Regular -{fontsize}"
alignment: Right
text: "{label}"

- !Spacer { geometry: "{spacing}x0" }

- !TextMonitor
foreground: *header_blue
background: "{highlight}"
geometry: "0x1 x {read-width}x18"
font: "-{fontname} -Regular -10"
geometry: "{read-width}x{text-height}"
font: "-{fontname} -Regular -{fontsize}"
pv: "{read-pv}"

- !Conditional
condition: "{units}"

children:
- !Text
geometry: "{spacing}x0 x {units-width}x{text-height}"
alignment: Left
font: "-{fontname} -Regular -{fontsize}"
text: "{units}"



_LabeledEntry: !Template:LabeledEntry
- !Defaults
Expand Down

0 comments on commit c1cb959

Please sign in to comment.