java


Remove the glowing border from focused tab with CSS


I am trying to remove the blue glowing border, which apears when the pane is focused of a tab in a tabpane in my javaFX application. any idea on how to do this in css?
This is my current css:
.tab{
-fx-background-radius: 0;
-fx-background-color: derive(-fx-base, 0%);
-fx-background-insets: 0.3;
-fx-focus-color: XXXXXX;
}
.tab:hover{
-fx-background-color: derive(-fx-base, 20%);
}
.tab:selected{
-fx-background-color: derive(-fx-base, 60%);
}
but i dont know which value i should give focuse color to match the background derive(-fx-base, 60%) i can see a difference and if i set it to -fx-background-color i get an error
One way to achieve this is to set the border color to transparent.
.tab-pane:focused > .tab-header-area > .headers-region > .tab:selected .focus-indicator {
-fx-border-color: transparent;
}
You can also set the focus color and the faint focus color (used for the inset border) directly.
.tab-pane:focused > .tab-header-area > .headers-region > .tab:selected .focus-indicator {
-fx-focus-color: transparent;
-fx-faint-focus-color: transparent;
}
I used the specific class here, but it also works with the tab class.
.tab {
-fx-focus-color: transparent;
-fx-faint-focus-color: transparent;
}
Try the following:
.tab-pane > .tab-header-area > .headers-region > .tab:selected
{
-fx-focus-color: transparent; //red;
}
I have never used javaFX, but in CSS you can remove that by doing...
a:focus{outline-color:transparent;}

Related Links

Reading from application.properties: Attribute value must be constant
I cannot get the program to repeat output in an ordered manner
while opening the session in hibernate 5.2.2 Final API ended up with NoSuchMethodError
Security: Write javax.mail.Message to File with Encryption
Wildfly in eclipse does not use heap params set in standalone.conf
How can we run browser in background and Foreground with selenium?
How to tell what row of a table a step is operating on in Cucumber-JVM?
Why printing all running threads in Java unblocks an application?
how to handle different response type in server socket in java
Upload multiple images with sharedpreferences
Postal Radius Range Restriction
MarshalException: Failed to communicate due to unread block data [closed]
Unsure how to resolve “Cannot resolve constructor” error
How do you inject a list of beans with the same #Qualifier?
Preincrement in java
Hibernate AutoCommit Example in Java

Categories

HOME
log4j
client
variables
magnific-popup
deezer
hp-exstream
android-4.4-kitkat
adb
google-oauth
elm
ckeditor
cross-browser
session-variables
gnupg
communication
floating-action-button
rascal
zend-framework3
spring-tool-suite
task
hex-editors
ibm-odm
vaadin7
propel
undefined
ml
cx-freeze
excel-2007
mustache.php
php-openssl
microsoft-sync-framework
wpfdatagrid
kannel
windows-server-2000
newline
srcset
sql-server-2012-express
stormpath
javascriptcore
ecto
data-manipulation
webtest
asset-pipeline
uiswipegesturerecognizer
fusionpbx
dosbox
twitch
sqlite2
jna
user-controls
ensembles
grid.mvc
nxlog
sas-jmp
angular2-meteor
youcompleteme
winscp-net
carrot
media-player
minimization
account-kit
quartz-composer
migradoc
watchconnectivity
heidisql
passport-google-oauth
libpng
azure-virtual-network
file-writing
django-debug-toolbar
impresspages
multiple-regression
fputcsv
connect-by
actionbardrawertoggle
ipconfig
revolution-r
ruby-2.2
purge
processmodel
fluid-dynamics
iiviewdeckcontroller
web-controls
javax.mail
formatjs
network-interface
markers
project-planning
typeof
system.net.webexception
bundles
ember-charts
imdbpy
flexmojos
farseer
geos
jplaton
ora-00911
jquery-knob
bitsharp
rdoc
datawindow
appconkit
dotnethighcharts
window-management
doh
spyware
hirefire
cinema-4d
netbeans-7.1
calling-convention
oncheckedchanged
createwindow
.nettiers
dmx512
infrastructure
revisions
meego
compiler-specific
audio-capture
kdbg
sustainable-pace
pascal-fc
.net-1.0
3gp
ntvdm.exe

Resources

Mobile Apps Dev
Database Users
javascript
java
csharp
php
android
MS Developer
developer works
python
ios
c
html
jquery
RDBMS discuss
Cloud Virtualization
Database Dev&Adm
javascript
java
csharp
php
python
android
jquery
ruby
ios
html
Mobile App
Mobile App
Mobile App