Comments (7)
you can add styles.
myPresenter addStyle: 'header1'
but you need to add the style somewhere :)
this is now defined in SpStyle class>>defaultStyleSheet, in the creator method you will see
...
.label [
Geometry { #hResizing: true },
.shortcut [
Draw { #color: Color{ #rgb: 622413393 } },
Font { #name: "Lucida Grande", #size: 10 }
],
.dim [
Draw { #color : Color{ #rgb: 708480675 } }
]
],
...
that shows the label has a subclass dim
that changes the color.
You can do something like this:
.header1 [ Font { #name: "Lucida Grande", #size: 10 } ]
and assign it to your label.
Now, the only problem here is that I didn't implemented the font weight property (which is what you want to be bold :P).
And yes, I know all of this require documentation :)
from newtools.
ok, now is there :)
You can add a style
.label [
...
.header [ Font { #name: "Lucida Grande", #size: 10, #bold: true } ]
...
]
from newtools.
I cannot make it work.
Besides, if I have a specialized inspector and I need to apply styles only for labels of that inspector, how do I do?
For instance from the debugger inspector, does that mean I have to dig down to the label and apply a style to it?
from newtools.
you can have special styles (styles are taken from application, but in the case of Pharo they are the standard styles).
Also, you should not add special styles other than the ones that Pharo will have (this is UI design :P)
Why it does not work?
Did you try resetting the style (its cached).
from newtools.
Well I believe that Pharo style should be header bars with bold title :)
But this is not so simple: when debugging, eg, it makes sense to write things in red sometimes...
So I reseted it and no difference. I tried to put #bold: true
in the .shortcut
style which is applied to headers labels in StHeaderBar
and no effect :'(
from newtools.
Ow, my bad... it was the wrong presenter I was modifying :D
So, it works, thanks! :)
from newtools.
Well I believe that Pharo style should be header bars with bold title :)
I could agree with that. But all headers has to be the same ;)
from newtools.
Related Issues (20)
- Inspector needs more extensions HOT 6
- Inspector needs more chronology extensions HOT 4
- [Improvement] Can edit inspect object vars directly in an inspector HOT 4
- Inspector: Syntax highlighting of Variables is not correct in eval pane
- Random failure: testHaltOnCount HOT 5
- Inspector: `self` is nil in Meta tab HOT 1
- Add a break point into a method should not disapear the method when a protocol is selected HOT 1
- StSpotterQuery messages sent but not implemented
- Debugger : no functional breakpoints in Traits methods HOT 1
- [Debug] Jump to carret problem - Instance of InstructionStream did not understand #willJumpIfFalse HOT 16
- CI: Second test (running all system tests) has two failing tests
- Debugger: show thisProcess lile thisContext as implicit var HOT 3
- [Debugger][Enhancement] Propose a shortcut to copy system infos to report a bug HOT 5
- The inspector auto-refresh does not respect the scrollbar state
- use classbuilder directly: StDebuggerExtensionGeneratorForTests class>>#generateTestClass HOT 1
- [Debug] Jump to carret problem - NodeNotInASTError
- StCritiqueBrowserPresenter should use application API and not UIManager HOT 1
- Better naming for Presenter that are presenters! HOT 1
- Can we rename StInspection -> StInspectionPresenter HOT 5
- VersionBrowser should not refer to UIManager since it is a Presenter
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from newtools.