How to style checkbox mark with cell selection enabled - javafx-8

I am having an issue I can't seem to find the correct CSS to correct. When I use the checkbox table cell and and select the row the checkbox mark goes white - looking like it's deselected.
I was able to change my CSS so that this appears the same either selected or not.
.table-row-cell:selected > .check-box-table-cell > .check-box:selected > .box > .mark {
-fx-background-color: -fx-text-base-color;
-fx-background-insets: 0;
}
However if that table switches to Cell Selection - then this CSS doesn't work.
I have tried to change adding this as a style:
.table-cell:selected > .check-box-table-cell > .check-box:selected > .box > .mark {
-fx-background-color: -fx-text-base-color;
-fx-background-insets: 0;
}
But that leaves me with the same styling as noted above. Not sure how to keep that checkbox from going whited while cell selection is true.
Appreciate any help you can provide.
Thanks.

Using your css code I couldn't exactly reproduce your pictures, since your posted css only changes the appearance of the mark and you probably have extra css code changing the appearance of the check-box, but the problem seems to lie in the css referencing.
.table-cell:selected already refers to the check-box-table-cell, so try
.table-cell:selected > .check-box:selected > .box > .mark{
-fx-background-color: -fx-text-base-color;
-fx-background-insets: 0;
}
or
.check-box-table-cell:selected > .check-box:selected > .box > .mark{
-fx-background-color: -fx-text-base-color;
-fx-background-insets: 0;
}

Related

VSCode: Altering pinned tabs - either make the font smaller or increase tab width

I am working with Custom CSS Loader and it's all setup.
I can alter CSS for VSCode and make changes. But the only thing I cannot change for some reason is the text within the tab.
I can alter the icon size when I just font-size for tab. But it has no effect on the text size.
And I have try increasing the width of the tab but there is no go.
I can only guess what .tab-container and .tab does.
Here is what I want to alter:
Here's the CSS code I stole from someone's suggestion within VSCode's Issues:
:root {
--size-reduction: 12px;
}
.monaco-shell {
font-family: "JetBrains Mono", "Monoco", monospace;
}
.tabs-container .tab,
.tabs-container .monaco-icon-label,
.tabs-container .monaco-icon-label::before,
.tabs-and-actions-container .editor-actions {
height: unset !important;
}
.monaco-workbench .tabs-container .tab * {
font-size: 0.5em;
width: 100px;
}
.editor-instance > .monaco-editor,
.editor-instance > .monaco-editor .overflow-guard,
.editor-instance > .monaco-editor .monaco-scrollable-element {
height: 100% !important;
}
.editor-instance,
.editor-instance > .settings-editor .settings-toc-wrapper,
.editor-instance > .settings-editor .settings-editor-tree {
height: calc(100% + var(--size-reduction)) !important;
}
.editor-instance > .settings-editor {
height: calc(100% - var(--size-reduction)) !important;
}
Can someone please break down the each of the elements (.tab, .tab-container, etc.) or point me to a source that breaks it all down?
Also, if I adjust the font-size within tab, why isn't the tab's fonts shrinking?
My Pinned Tab Sizing is set to "Shrink". I have tried changing it from Compact and Norman with no difference in Font Sizing.
My normal font is "Jetbrains Mono" for the editor.
Acknowledging that this answer does not answer my original inquiry of "altering shrink pinned tabs either with width or font size."
But without using CSS-Custom-Loader and fiddling with the viscose's css, I found a more elegant solution using the UI settings.
The three settings to pay attention to:
Pinned Tab Sizing: Normal
Workbench > Editor: Show Tabs checked
Workbench > Editor: Tab Sizing shrink
Now I will pin 8 to 10 tabs at a time. So this will fit nice and neat within a workspace.
If I had 30 pinned tabs, I don't know if it would show enough to make a difference.

Styling list row with CSS in GTK+3

My Python app has a ListBox with some placeholder rows in them right now.
for i in range(0, 10):
myListRow = Gtk.ListBoxRow()
myList.add(myListRow)
myListItem = Gtk.Box(name="MyListItem", orientation=Gtk.Orientation.HORIZONTAL)
myListRow.add(Gtk.Label(label="placeholder"))
I'm running into a tonne of trouble styling the rows in any way. Using an arbitrary background colour, none of these result in any changes:
.list row {
background: #f00;
}
-
.row {
background: #f00;
}
-
row {
background: #f00;
}
-
GtkListBox row {
background: #f00;
}
For some reason, this does, though, and only with the area of the ListBox that has labels in it:
.list > * {
background: #f00;
}
Testing with .list .label { background: #0f0 } confirms that it's not just styling the labels. The rows are certainly in the ListBox and can certainly be styled, but I do not have any idea what the CSS selectors for those ListBox rows might be. Any help would be appreciated.
Using PyGI running GTK+3.18 in Python 3.4.
I forced the GTK debugger/inspector to run by adding "GTK_DEBUG" into my System Variables with the value "interactive" to look.
The name of the row element is actually list-row.

Adding costum styles to Typo3 RTE. Some are not saved

I add costum styles to the RTE with a CSS File:
RTE.default.contentCSS = EXT:netjapan/Resources/Public/css/rte.css
For some elements this works. For example for a ulElement:
ul.liststyle1 {
list-style: none;
padding-left: 17px;
}
When I select the ul in the RTE I can chose the Blockstyle liststyle1.
I want to do the same for p:
p.test {
font-size: 80%;
}
And when I select the p I can chose the Blockstyle test and the style is used. But when I save the Blockstyle is gone.
I added this Typoscript:
RTE.default {
removeTags = sdfield, strike
proc.entryHTMLparser_db.removeTags = sdfield, strike
}
So that p is not in the removeTags list. But it had no effect.
Anyone know how it comes that the Blockstyle is removed on the pElement?
I had simillar problem last week. Sometimes RTE is going crazy. I mean that there is no logical sense in it. Check this: marke the text and use the container style it will wrap it in div but there will be also <p> in it so you will have something like <div><p class="bodytext">text</p></div> - you can add style for that. At least this solved my problem

Typo3 6.x : How to show Icon (pdf, jpg,...) in my Downloadlist (content type filelinks)

does anybody know, how I can show the fileicon in my Downloadlist created with content Type filelinks in Typo3 6.1.5?
In older Typo Versions, I used the extension css_filelinks, but it doesn't work anymore.
My current Typoscript Setup:
tt_content.uploads.20.renderObj = COA
tt_content.uploads.20.renderObj.20.data = file:current:title //file:current:description // file:current:name
First of all, to let TYPO3 display file icons from the filelinks content element, you need to choose any other CE layout (in the Appearance tab) than the default.
Now TYPO3 prepends the files with icons. You might not find them too beautiful. If so, you can configure the file path end type of the icons with TypoScript:
# path to the folder containing the icons
tt_content.uploads.20.renderObj.15.file.import = fileadmin/folder/to/my/icons/
# wrap to indicate the file type of the icons (defaults to |.gif)
tt_content.uploads.20.renderObj.15.file.wrap = |.png
If you want to display icons globally without setting the layout, get rid of the corresponding if statement:
tt_content.uploads.20.renderObj.15.stdWrap.if >
Of course you could also just use CSS selectors to display the right icon:
a[href $='.pdf'] { background: url('icons/pdf.png') no-repeat 1px 2px; padding-left: 20px; }
Is there no CSS-Class you can use?
Like this:
span.csc-uploads-fileName {
background: url("../img/icon.png") no-repeat scroll 0 0 transparent;
height: 40px;
width: 43px;
text-indent: -999em;
}

DatePickers on the FloatPanel

I need to place several DatePicker widgets into the row. If there is not enough width to place all of them the rest widgets shift to the next row. It is the default HTML layout behavior. So I am trying to use FlowPanel. With any other widgets (Buttons, Labels, ...) everything ok, but DatePickers are placed one widget to the row. Here's the code
FlowPanel panel = new FlowPanel();
DatePicker picker1 = new DatePicker();
DatePicker picker2 = new DatePicker();
panel.add(picker1);
panel.add(picker2);
RootPanel.get().add(panel);
Any suggestions to solve this problem?
Thanks.
DatePicker's root element is a table so you'd have to give it a display: inline-table style, or put it in an element with display: inline-block style.
The following shouldn't break any other use of DatePicker, but won't work in IE 6 or 7; it's the Simplest Thing That Could Possibly Work™:
.gwt-DatePicker { display: inline-table; }
If you really need IE 6/7 support, you could try the following, in a CssResource:
#if user.agent ie6 {
.gwt-DatePicker { display: inline; }
}
#else {
.gwt-DatePicker { display: inline-table; }
}