mirror of
https://github.com/zerotier/ZeroTierOne.git
synced 2025-06-06 12:33:44 +02:00
add border around About web view. added padding to text div in the about page
This commit is contained in:
parent
91b8d6f34f
commit
a7b635a980
3 changed files with 10 additions and 0 deletions
|
@ -17,6 +17,12 @@
|
||||||
- (void)viewDidLoad {
|
- (void)viewDidLoad {
|
||||||
[super viewDidLoad];
|
[super viewDidLoad];
|
||||||
|
|
||||||
|
[self.webView setWantsLayer:YES];
|
||||||
|
self.webView.layer.borderWidth = 1.0f;
|
||||||
|
[self.webView.layer setCornerRadius:1.0f];
|
||||||
|
self.webView.layer.masksToBounds = YES;
|
||||||
|
[self.webView.layer setBorderColor:[[NSColor darkGrayColor] CGColor]];
|
||||||
|
|
||||||
NSBundle *bundle = [NSBundle mainBundle];
|
NSBundle *bundle = [NSBundle mainBundle];
|
||||||
NSURL *path = [bundle URLForResource:@"about" withExtension:@"html"];
|
NSURL *path = [bundle URLForResource:@"about" withExtension:@"html"];
|
||||||
if(path) {
|
if(path) {
|
||||||
|
|
|
@ -1,6 +1,7 @@
|
||||||
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
|
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
|
||||||
<document type="com.apple.InterfaceBuilder3.Cocoa.XIB" version="3.0" toolsVersion="10116" systemVersion="15G31" targetRuntime="MacOSX.Cocoa" propertyAccessControl="none" useAutolayout="YES" customObjectInstantitationMethod="direct">
|
<document type="com.apple.InterfaceBuilder3.Cocoa.XIB" version="3.0" toolsVersion="10116" systemVersion="15G31" targetRuntime="MacOSX.Cocoa" propertyAccessControl="none" useAutolayout="YES" customObjectInstantitationMethod="direct">
|
||||||
<dependencies>
|
<dependencies>
|
||||||
|
<deployment identifier="macosx"/>
|
||||||
<plugIn identifier="com.apple.InterfaceBuilder.CocoaPlugin" version="10116"/>
|
<plugIn identifier="com.apple.InterfaceBuilder.CocoaPlugin" version="10116"/>
|
||||||
<plugIn identifier="com.apple.WebKitIBPlugin" version="10116"/>
|
<plugIn identifier="com.apple.WebKitIBPlugin" version="10116"/>
|
||||||
</dependencies>
|
</dependencies>
|
||||||
|
|
|
@ -37,6 +37,9 @@
|
||||||
a:link {
|
a:link {
|
||||||
text-decoration: none;
|
text-decoration: none;
|
||||||
}
|
}
|
||||||
|
div.text {
|
||||||
|
padding: 5px;
|
||||||
|
}
|
||||||
</style>
|
</style>
|
||||||
|
|
||||||
</head>
|
</head>
|
||||||
|
|
Loading…
Add table
Reference in a new issue