I have a table view with a navigation controller and a tabbar controller. I want to make the navigation and tab bar transparent so that when I will scroll the tableview, it will not be hidden behind the tabbar and navbar.
my image url -
In this picture, the top two images are on the navbar and button 3 images are on tabbar. How to make it, so that the table view will appear on the screen behind the tabbar and navbar in swift
this should work with changing the alpha to 0.5 for example.
navigationController?.navigationBar.barTintColor = UIColor(red: 0.5, green: 0.5, blue: 0.5, alpha: 0.5)
Hope it works!
Related
I use navigation controller. For change color of icon in bottom menu i use "selector" with state_checked values.
Change color is operable when i navigate between navigation fragments described in navigation menu. Now the issue example:
Inside of fragment which described in bottom menu i navigate to other fragment which now is in back stack.
From this place i navigate to other fragment from bottom menu.
Then i back to fragment from point #1 and i see fragment which is in back stack.
The issue is that icon don't change color while i don't back to fragment from navigation menu.
Behavior of navigation you can see in gif video.
How save change color of navigation icon in bottom menu when i have other fragments in back stack and switch between menu?
behavior of navigation menu
I have a reference for a bottom-tab in Kotlin here.
My app uses a frameless window and I made a custom title bar along with it, I set the entire titlebar area to be draggable with -webkit-app-region: drag; so you can position the window on the desktop, but now I can't resize the app from those corners, is there any way to keep both?
Edit: I added -webkit-app-region: drag; to the buttons and the left title area because I lost control of the buttons and I can resize from corners and those edges, but the top edge is still inactive
I have a ImageView with a transparent image (PNG) therefore the image doesn't fill the complete rectangle of the image view, when mouse hover over the image view I want to change the background color of only the rectangle of the image view. In Css how I do it? do the image view node have the property -fx-background color? I tried and it's doesn't work for me.
I have a css file linked to the .FXML
Use this
Bounds bound = ImageView.getBoundsInLocal(); //getting co-ordinates
ImageView.setEffect(ColorInput(bound.getMinX(), bound.getMinY(),
bound.getWidth(), bound.getHeight(), Color.YELLOW));
By function should work.
I Like to show a label that having a animated gif image over a listwidget.
listwidget is in a horizontal widget. when i am trying to put that label on window it aligned horizontally to list widget. I want to show it over the Listwidget with transparent view.
QMovie *m= new QMovie("loadingImage.gif");
QLabel *l=new QLabel();
ui.mainlayout->add
l->setMovie(m);
m->start();
l->show();
Don’t add the transparent widget to the layout. Just set the window as the transparent widget’s parent then show the widget. You’re then responsible for positioning and resizing the transparent widget to cover the list widget.
In default menu in JavaFX 2.*, menu tab is rounded. How to change it to rectangle shape?
I've tried with CSS but I cannot figure out which component to change.