rounded-corners

Rounded tables in Twitter Bootstrap 3

孤街浪徒 提交于 2019-11-29 22:47:53
Bootstrap 3 has dropped rounded corners on tables. Which styles should I apply to get them back when I apply the .table-bordered class, please? UPDATE So far I've come to this code, with no effect. CSS taken from Bootstrap 2.3.2: .table-bordered { -webkit-border-radius: 4px; -moz-border-radius: 4px; border-radius: 4px; } .table-bordered thead:first-child tr:first-child > th:first-child, .table-bordered tbody:first-child tr:first-child > td:first-child, .table-bordered tbody:first-child tr:first-child > th:first-child { -webkit-border-top-left-radius: 4px; border-top-left-radius: 4px; -moz

Using a rounded corners drawable

北城余情 提交于 2019-11-29 20:42:09
There is a nice post made by the popular Google developer Romain Guy that shows how to use a rounded corners drawable (called "StreamDrawable" in his code ) on a view efficiently. The sample itself works very well on my Galaxy S3 when in portrait mode, but I have a few issues with it: if the screen is small (for example on qvga screens), the shown images get cropped. if I have an input bitmap that is too small than how I wish to show it, the output image has its edges smeared. Even on the Galaxy S3, when you run the sample code and it's on landscape, it looks awful: I'm still not sure about it

UINavigationBar Rounded Two Corners

女生的网名这么多〃 提交于 2019-11-29 20:02:02
I want to round the top right and top left of the UINavigationBar. I know that there are functions for changing the views corner radius, but is it possible to do something similar to the standard UINavigationBar? If you don't know what I'm talking about, check out this: Thanks! The best way is to override drawRect in UINavigationBar and use a custom image. the following code works for me (tested on iOS5). The following code rounds the top left/right corners of the main navigation bar. Additionally, it adds a shadow to it: CALayer *capa = [self.navigationController navigationBar].layer; [capa

Rounded Corners in Parent DIV not effecting Child DIVs

纵然是瞬间 提交于 2019-11-29 19:09:43
问题 So, I'm experimenting with using rounded-corners in CSS3 (not in IE, don't care if it works there), and I have the DIV where all of my content lives looking quite nice. The problem I'm having is that there are child DIVs that are not getting "masked" by the parent's rounded corners. I'm not looking for the child to inherit the rounded-corners. I just want to have any content inside the parent to not be visible where it is rounded, as if it were masked. I tried using "overflow: hidden;", but

Swift: Button round corner breaks contraints

ぃ、小莉子 提交于 2019-11-29 18:13:06
I have a tableview with custom cell loaded via xib and in that cell I have status button which bottom right corner should be rounded. The button has constraints Trailing/Leading/Bottom space to superview=0 and height=30. Without rounding it is working perfectly, as soon as I round one corner for example bottom right the constraints breaks self.btnStatus.roundCorners(corners: [.bottomRight], radius: 7.0, borderWidth: nil, borderColor: nil) Some guys here suggesting to call layoutSubviews() but it didn't helped me. To be more specific I've created simple project where you can have a look into

Add rounded borders to selected corners of an element

陌路散爱 提交于 2019-11-29 14:18:34
How could I go about constructing something like this with pure CSS? This is how far I've gotten so far: Fiddle I'm struggling with how to get that rounded corner there, even if I continue to add additional span s. CODE: body { background: #000; } .container { position: relative; width: 300px; height: 150px; margin: 10% auto; } .top-right { position: absolute; top: -10px; right: 0; width: 50px; height: 1px; background: white; border-radius: 5px; } .box { width: 100%; height: 100%; background: red; border-radius: 15px; display: flex; align-items: center; justify-content: center; } h3 { color:

Rounded corner ImageView - Android

痞子三分冷 提交于 2019-11-29 10:27:09
问题 I try to create imageview with rounded corners.i searched and found xml code <?xml version="1.0" encoding="utf-8"?> <solid android:color="#00ffffff" /> <padding android:bottom="6dp" android:left="6dp" android:right="6dp" android:top="6dp" /> <corners android:radius="12dp" /> <stroke android:width="6dp" android:color="#ffffffff" /> and this is a my imageview xml code <ImageView android:id="@+id/slidemenuuserimage" android:layout_width="90dp" android:layout_height="90dp" android:layout

Bitmap repeat + rounded corners

痴心易碎 提交于 2019-11-29 10:25:27
I am trying to create rectangle with rounded corners and background as repeated bitmaps. I am writing like this, but getting bitmaps in the corners. Could anyone help out? background.xml <?xml version="1.0" encoding="utf-8"?> <layer-list xmlns:android="http://schemas.android.com/apk/res/android"> <item> <shape> <stroke android:width="1dp" android:color="#FFFFFF" /> <corners android:radius="50dp" /> </shape> </item> <item> <bitmap android:src="@drawable/carbon_4" android:tileMode="repeat" /> </item> </layer-list> As I understand the goal: have a tiled background image with some curved corners.

how to round_corner a logo without white background(transparent?) on it using pil?

落花浮王杯 提交于 2019-11-29 08:53:20
问题 I got a square logo and I need to round_corner it, searched for a while and got the follow code "working": def round_corner_jpg(image, radius): """generate round corner for image""" mask = Image.new('RGB', image.size) #mask = Image.new('RGB', (image.size[0] - radius, image.size[1] - radius)) #mask = Image.new('L', image.size, 255) draw = aggdraw.Draw(mask) brush = aggdraw.Brush('black') width, height = mask.size draw.rectangle((0,0,width,height), aggdraw.Brush('white')) #upper-left corner

Rounded Rectangle Not Accurate

佐手、 提交于 2019-11-29 06:56:38
Every sample code I've ever found for drawing rounded rectangles using GDI+ goes something like this (lifted and slightly modified from BobPowell.net): Private Sub Panel1_Paint(ByVal sender As Object, ByVal e As PaintEventArgs) Handles Panel1.Paint e.Graphics.Clear(SystemColors.Window) e.Graphics.SmoothingMode = SmoothingMode.None Call DrawRoundRect(e.Graphics, Pens.Red, 10, 10, 48, 24, 6) End Sub Public Sub DrawRoundRect(ByVal g As Graphics, ByVal p As Pen, ByVal x As Single, ByVal y As Single, ByVal width As Single, ByVal height As Single, ByVal radius As Single) Using gp As New GraphicsPath