transparent

Is it possible to, in JavaFX, have a scene, stage, and control that are all transparent?

让人想犯罪 __ 提交于 2020-01-03 04:46:11
问题 I have a custom control which is 3 simple buttons. The control handles operations for the application to which it is tied, but it must reside on an external stage for reasons. The thing that is annoying about it is that between all buttons is a white background. I've tried all of the following to eliminate it: Init StageStyle to Transparent Declare Scene with a transparent background : new Scene(Node, X, Y, Color.TRANSPARENT); Declare Scene with a NULL background : new Scene(Node, X, Y, null)

Win32 (GDI) - Set Opacity of STATIC Control

旧城冷巷雨未停 提交于 2020-01-02 06:59:54
问题 I'm using C - (NO MFC or GDI+) :-) What I want is to set the opacity of my child window to let say 100 (my child window is a STATIC control). I was wondering if this is even possible and if so can someone please point me to the right direction on how to do it. Here is my setup: I create my Parent window as follow: HWND hWnd; WNDCLASS wndCls_s; wndCls_s.style = CS_HREDRAW | CS_VREDRAW | CS_OWNDC; wndCls_s.lpfnWndProc = MainWndProc; wndCls_s.cbClsExtra = 0; wndCls_s.cbWndExtra = 0; wndCls_s

How can I make div rounded corners with transparent background?

荒凉一梦 提交于 2020-01-02 03:44:05
问题 How can I create a div with rounded corners and transparent backgrounds? A bit like twitter does. So that at the edge of the corners you can see the page background and not a black edge. 回答1: for a simple Radius, use this CSS: div{ -moz-border-radius:10px; /* for Firefox */ -webkit-border-radius:10px; /* for Webkit-Browsers */ border-radius:10px; /* regular */ opacity:0.5; /* Transparent Background 50% */ } Greez, Chuggi 回答2: For full control over which elements are transparent and which are

(Android) How to fill ListView background and preserve header transparency

ε祈祈猫儿з 提交于 2020-01-01 08:31:29
问题 I have a custom image background that fills the entire screen behind a ListView. The ListView has a header that contains some data, then a transparent 10dp margin(allowing us to see a little bit of the background image), and then some more data. Below this header, in the "body" of the ListView, I need to make the ListView's background fill all the way to the bottom of the screen even if the items within do not go all the way to the bottom. If I set the background of the ListView, then I get

Android: make everything around Dialog darker than default

痞子三分冷 提交于 2020-01-01 02:27:07
问题 i have a custom dialog with following style: <style name="webtogo_app_style" parent="@android:style/Theme.Dialog"> <item name="android:windowNoTitle">true</item> <item name="android:windowBackground">@android:color/transparent</item> </style> It shows a borderless dialog, and anything behind gets (slightly) darker. My designer wants that everything behind got ever more dark than Android's default, but not completely black. Is there a setting for this at all? The only workaround I can think of

How to create semi transparent white window in XLib

扶醉桌前 提交于 2019-12-29 07:49:00
问题 I would like to create a semi transparent white window in XLib, but the window is not semi translucent, it remains fully opaque. I use the compton compositor and there are transparent windows in the system, so the problem is in the code: #include <X11/Xlib.h> #include <X11/Xutil.h> #include <stdio.h> int main(int argc, char* argv[]) { Display* display = XOpenDisplay(NULL); XVisualInfo vinfo; XMatchVisualInfo(display, DefaultScreen(display), 32, TrueColor, &vinfo); XSetWindowAttributes attr;

How can I make my form field have a background image?

早过忘川 提交于 2019-12-25 18:14:44
问题 I added background: transparent; to the form field, however that also includes the image I'm trying to attach. When I use just the image, all I see is the regular form field. The field itself is like a sketchy underline, so that's why I need the image versus CSS styling. Can anyone please help? Thank you! *Update! I couldn't get my images to show up because I hadn't set the height / width on the field itself. But the underline is showing up. The image itself is a transparent png, but the

How can I make my form field have a background image?

拥有回忆 提交于 2019-12-25 18:14:03
问题 I added background: transparent; to the form field, however that also includes the image I'm trying to attach. When I use just the image, all I see is the regular form field. The field itself is like a sketchy underline, so that's why I need the image versus CSS styling. Can anyone please help? Thank you! *Update! I couldn't get my images to show up because I hadn't set the height / width on the field itself. But the underline is showing up. The image itself is a transparent png, but the

Registering mouseclicks with ws_ex_transparent active c++

ⅰ亾dé卋堺 提交于 2019-12-25 08:56:57
问题 How do I get my window to register mouseclicks even tho ws_ex_transparent is on? HWND hWnd = CreateWindowEx(WS_EX_LAYERED| WS_EX_TRANSPARENT, szAppName, wcWndName, WS_VISIBLE | WS_POPUP, 255, 150, w, h, NULL, NULL, hThisInst, NULL); The window is flagged to be layered and transparent, along with SetWindowPos(hWnd, HWND_TOPMOST, 0, 0, GetSystemMetrics(SM_CXSCREEN), GetSystemMetrics(SM_CYSCREEN), SWP_FRAMECHANGED); placing it "topmost" (infront) makes it work as an overlay, but sadly, it doesnt

QRubberBand and MPlayer in QLabel

偶尔善良 提交于 2019-12-25 07:46:46
问题 I have already tried many solution that are provided on stackoverflow to make it transparent. I want to make QRubberBand transparent and i am also facing problem regarding that green color which is due to mplayer. #include "physician.h" #include "ui_physician.h" Physician::Physician(QWidget *parent) : QMainWindow(parent), ui(new Ui::Physician) { ui->setupUi(this); ui->sendROIButton->setStyleSheet( "background-color: #d9d9d9;" "border-radius: 10px;" "color: Black; " "font-size: 15px;" ); }