border

creating spacing between an element and its border

半城伤御伤魂 提交于 2021-02-02 03:37:58
问题 I'm trying to create a spacing between an element and its outermost border. (EDIT: he wants to do two borders between the element proper and the outside of the box-model box. This gives him the room of using the margin, border and padding to achieve his goal). So far my searches in Google and here produced no solution to this. I am trying to avoid using images to acheive this. 回答1: You want padding. Here's a link to a site that demonstrates "margin", "border", and "padding" for an element.

PyQt widget border color transparent - but button inside normal border

旧时模样 提交于 2021-01-29 12:29:15
问题 I want the border of my QTWidgets.QWidget to be transparent or disabled (borderwidth=0), but when I set it via the stylesheet to "border:0", also all the push buttons inside the widget dont have a border - any idea how to keep the style of the pushbuttons and only change the widget border ? class lamp_frame(object): def setupUi(self, window): window.setObjectName("Yeelight Controlle") window.resize(460, 140+self.window_hight) window.setFixedSize(460, 140+self.window_hight) self.frame_0 =

Itext java digital signature text and border color and

为君一笑 提交于 2021-01-29 09:25:07
问题 Please let me know,how do we modify below text which appears above digital signature using java itext. Text is shown in black color in image. "Document certified by xyz" How do we change above text , color and font size ? Thanks 回答1: In comments you clarified that you use a deprecated option to make the PDF viewer display the validation result in the signature visualization. (Use of this option is strongly recommended against; in current PDF specifications - ISO 32000-2:2017 - it is forbidden

Weird White Outline Around C# Images

若如初见. 提交于 2021-01-29 08:23:22
问题 I am using an ImageList in C# to display images on buttons dynamically. When I set the image index, it displays the image like so: Here is the same image in Photoshop: 回答1: To anyone else who has this problem, Open all the images in an image editor and replace transparency with something like (255, 0, 255) and in Visual Studio set "Transparency Color" to (255, 0, 255). 回答2: I had same problem using image with transparent background. Setting appropriate color depth solved the issue. imageList

Swift How remove searchController bottom border?

纵饮孤独 提交于 2021-01-29 06:44:47
问题 This page has tableView and SearchController. My problem is searchController borders. I can't remove borders I tried: Remove border between View and Search Bar Remove navigation bar bottom line when using search controller Remove 1px line at top of UISearchController in large titles UINavigationBar How to hide UINavigationBar 1px bottom line How can I remove border bottom of UINavigationBar? if #available(iOS 11.0, *) { let scb = searchController.searchBar scb.tintColor = UIColor.white scb

How to apply round corner border to table (single page / multipage)?

夙愿已清 提交于 2021-01-29 06:16:37
问题 I want to apply round corner border to a table. This table is dynamic. That means it can grow up to multiple pages or can accommodate in single page. If table comes in single page, then outermost corner of all four corner cells should be drawn as rounded. If table grows up to multiple pages (say 3 pages), then outermost corner of all four corner cells should be drawn as rounded for all 3 pages. Here is the approach which I am using to implement the above scenario. public void createPdf(String

Java swing metal JButton focus border size

血红的双手。 提交于 2021-01-29 03:07:02
问题 If I set Metal theme for Swing GUI, JButton border is painted around the whole button, but focus border is painted only around JButton's text and icon, so if text size is smaller than button size, the border appears inside button. Most replies to this problem simply suggest to disable global focus border painting by UIManager.getLookAndFeelDefaults().put("Button.focus", new ColorUIResource(new Color(0, 0, 0, 0))); or per-button by jButton.setFocusPainted(false); But I actually want focus

Java swing metal JButton focus border size

a 夏天 提交于 2021-01-29 03:03:26
问题 If I set Metal theme for Swing GUI, JButton border is painted around the whole button, but focus border is painted only around JButton's text and icon, so if text size is smaller than button size, the border appears inside button. Most replies to this problem simply suggest to disable global focus border painting by UIManager.getLookAndFeelDefaults().put("Button.focus", new ColorUIResource(new Color(0, 0, 0, 0))); or per-button by jButton.setFocusPainted(false); But I actually want focus

pyqt5 can't apply border to framelesswindow

半腔热情 提交于 2021-01-28 12:30:41
问题 I applied border width and border color via setStyleSheet funciton in pyqt5. But when I use it in frameless window, border not applied. any issue in my code? I need help. Here comes my code. import sys from PyQt5.QtWidgets import QWidget,QApplication from PyQt5.QtCore import Qt,QPoint class CommonFramelessWidget(QWidget): def __init__(self,parent): super(CommonFramelessWidget,self).__init__(parent) self.setWindowFlags(Qt.Window|Qt.FramelessWindowHint) self.setStyleSheet('border:5px black;

pyqt5 can't apply border to framelesswindow

坚强是说给别人听的谎言 提交于 2021-01-28 12:18:38
问题 I applied border width and border color via setStyleSheet funciton in pyqt5. But when I use it in frameless window, border not applied. any issue in my code? I need help. Here comes my code. import sys from PyQt5.QtWidgets import QWidget,QApplication from PyQt5.QtCore import Qt,QPoint class CommonFramelessWidget(QWidget): def __init__(self,parent): super(CommonFramelessWidget,self).__init__(parent) self.setWindowFlags(Qt.Window|Qt.FramelessWindowHint) self.setStyleSheet('border:5px black;